Changes between Initial Version and Version 1 of Ticket #13604
- Timestamp:
- Aug 8, 2011, 7:20:30 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13604
- Property Owner set to bill
-
Property
Milestone
changed from
tbd
to1.8
-
Property
Component
changed from
General
toDijit
-
Property
Summary
changed from
issue when the pop up menu is hidden
tohidden popup menu can cause scroll bar
-
Ticket #13604 – Description
initial v1 1 1 In the file popup.js under the path dijit\_base, there are codes as below. The code section shows that the popup menu is hidden with that the top is value -9999px and the visibility is hidden. 2 {{{ 2 3 moveOffScreen: function(/*Widget || DomNode*/ widget){ 3 4 var wrapper = widget.declaredClass ? widget._popupWrapper :(dojo.hasClass(widget.parentNode,"dijitPopup") && widget.parentNode), … … 10 11 }); 11 12 } 13 }}} 12 14 Actually the "left" value should be assigned when the popup menu is hidden. Because the "visibility: "hidden"" shows that the popup menu occupies the space where they stay even if it is hidden. The "top" value only changes the vertical position, but the horizontal position is affected by the "left" value. Not assigning the "left" value is based on the assumption that the space is big enough to hide the popup menus and not affect other elements to display. But in the fact, the assumption is not always true, and the unneeded scroll bar always occurs because the element occupies the space even if it is hidden. 13 15