Opened 14 years ago
Closed 14 years ago
#3135 closed defect (fixed)
IE scrolls window when a menu is opened if not at top of page
Reported by: | simonjb | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | 0.9beta |
Component: | Dijit | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
If a menu is opened on IE (6 and 7, with mouse or keyboard) and the browser is not at the top of the page then rather than showing the menu the window scrolls towards the top of the page. To reproduce:
- open dijit/tests/test_Menu.html in IE
- scroll down
- right click
Attachments (2)
Change History (4)
Changed 14 years ago by
Attachment: | MenuScrollOption1.diff added |
---|
Changed 14 years ago by
Attachment: | MenuScrollOption2.diff added |
---|
comment:1 Changed 14 years ago by
Owner: | changed from simonjb to bill |
---|
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
I don't think I understand the problem well enough to recommend a solution but I've found 2 possible solutions that work:
Remove the call to dijit.util.scroll.scrollIntoView
Change the test for IE in dijit.util.scroll.scrollIntoView
"dojo.marginBox(node.parentNode).h <= node.parentNode.scrollHeight"
to"dojo.marginBox(node.parentNode).h < node.parentNode.scrollHeight"