PDA

View Full Version : [DUPE-947] Scrolling menu is not positioned correctly



YetAnotherFrank
28 May 2010, 4:34 AM
Ext version tested:


Ext 3.2.0



Adapter used:


ext



css used:


only default ext-all.css





Browser versions tested against:


IE8
FF3 (firebug 1.5.3 installed)



Operating System:


Win Vista Pro



Description:


In the Ext.menu.Menu, if you give it a maximal height and some menu items,
so that scrolling is triggerd, the menu is not positioned correctly. The more items you add
the more it will slide to the top region of the window, until it is positioned on the very top border
of the winodw.



Test Case:



Ext.onReady(function(){

var tb = new Ext.Toolbar();

var scrollMenu = new Ext.menu.Menu({maxHeight: '100'});
for (var i = 0; i < 10; ++i){
scrollMenu.add({
text: 'Item ' + (i + 1)
});
}
// scrollable menu
tb.add({
icon: 'preview.png',
cls: 'x-btn-text-icon',
text: 'Scrolling Menu',
menu: scrollMenu
});

tb.render('toolbar');

});


Screenshot or Video:


attached



Debugging already done:


none



Possible fix:


not provided



20691

Jamie Avins
28 May 2010, 8:13 AM
Dupe: http://www.extjs.com/forum/showthread.php?98893-3.2.x-Menu-wrong-position-when-using-enableScrolling-with-maxHeight