Changeset 13034
- Timestamp:
- 03/11/08 12:03:20 (10 months ago)
- Files:
-
- 1 modified
-
dijit/trunk/_base/scroll.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/_base/scroll.js
r11040 r13034 9 9 // not safari either 10 10 // dont like browser sniffs implementations but sometimes you have to use it 11 if(dojo.isIE){ 12 //only call scrollIntoView if there is a scrollbar for this menu, 13 //otherwise, scrollIntoView will scroll the window scrollbar 14 if(dojo.marginBox(node.parentNode).h <= node.parentNode.scrollHeight){ //PORT was getBorderBox 15 node.scrollIntoView(false); 16 } 17 }else if(dojo.isMozilla){ 11 if(dojo.isMozilla){ 18 12 node.scrollIntoView(false); 19 13 }else{ 14 // #6146: IE scrollIntoView is broken 15 // It's not enough just to scroll the menu node into view if 16 // node.scrollIntoView hides part of the parent's scrollbar, 17 // so just manage the parent scrollbar ourselves 20 18 var parent = node.parentNode; 21 19 var parentBottom = parent.scrollTop + dojo.marginBox(parent).h; //PORT was getBorderBox