Opened 10 years ago
Closed 9 years ago
#16298 closed defect (fixed)
Dialog: href content not positioning correctly
Reported by: | lee | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | 1.9 |
Component: | Dijit | Version: | 1.8.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
There looks to be a problem with loading external content into a Dialog where it positions top above the viewport. domGeometry.position(node) isn't calculated properly as compared to content loaded inline.
I've attached a simple test case. I've attached a "patch" though it isn't one and just a demonstration how to improve positioning. It means _position() would be called 3 times (from show, onLoad and onLoad again) rather than twice, it's still not correct though, the "patch" can only be used with #16172
I added some console logging in _position() to show the domGeometry.position(node) calculations
Inline content
bb: h: 298.1833190917969,w: 1158.5,x: 8,y: 130.86666870117188
External content
bb: h: 70,w: 128,x: 8,y: 130.86666870117188 -- second call from onLoad bb: h: 1538,w: 689,x: 576,y: 119
I can call resize in my own code if I connect to the Dialog.onLoad however it seems like that should be managed internally
Attachments (3)
Change History (7)
Changed 10 years ago by
Attachment: | dialog_externalcontent_positionbug.html added |
---|
comment:2 Changed 10 years ago by
Summary: | dijit dialog href content not positioning correctly → Dialog: href content not positioning correctly |
---|
comment:3 Changed 10 years ago by
Milestone: | tbd → 1.9 |
---|---|
Priority: | undecided → high |
test html file