PDA

View Full Version : [CLOSED][Ext 3.2 beta] Menu Scroll Buttons Missing



StevenInc
14 Mar 2010, 5:56 AM
Ext version tested:


Ext 3.2 rev 0



Adapter used:


ext



css used:


only default ext-all.css





Browser versions tested against:


FF3.6 (firebug 1.5.2 installed)



Operating System:


Win7 Pro



Description:


When a menu extends past the viewport height, the top and bottom scroll bars are missing.
Additionally, the menu flashes on and off.



Test Case:



var home_btn1 = new Ext.Button({
text : 'Admin',
icon : 'assets/images/iToolBars/Config_24.png',
scale : 'medium',
height : 25,
cls : 'btn-panel',
//cls : 'redButton',
id :'adminBut1',
//template: home_btn1_Tpl,
//Hide menuItems that are not authorized
menu : new Ext.menu.Menu({
items: [{
text: 'test',
id: 'TextItemID',
iconCls : 'icon-accept',handler: function(){window.location = 'index.cfm';}}

],
listeners: { //keep menu visible when mouse over menu
mouseover: function(){
showTaskhome_btn1.cancel();
},
mouseout: function(){
// commented out to allow for menu scroll.
//showTaskhome_btn1.delay(menuDelayDropDownHide);
}
}//listener
}),//menu

listeners: { //keep menu visible when mouse over button
mouseover: function(){
showTaskhome_btn1.cancel();
if(!this.hasVisibleMenu()){
showTaskhome_btn1.delay(menuDelayDropDownDisplay);
}
},
mouseout: function(){
showTaskhome_btn1.cancel();
showTaskhome_btn1.delay(menuDelayDropDownHide);
}
}//listener

});//admin



var showTaskhome_btn = new Ext.util.DelayedTask(home_btn.showMenu, home_btn);

Steps to reproduce the problem:


1) Adjust the browser window such that the height is less than the menu length.
2) Display menu.



The result that was expected:


foo
bar



The result that occurs instead:


Menu scroll buttons are missing.
Menu Delay flash on and off.



Screenshot or Video:


see attached screen shot



Debugging already done:


none



Possible fix:


not provided



Note:


The Desired behavior is when the button is moused over, there is a brief delay
then the menu appears. onmouseout, the menu stays visible until clicked on.
This works properly in 3.0 and 3.1

http://www.stevenbenjamin.com/sbcom/assets/images/misc/menu_302.gif

evant
15 Mar 2010, 12:41 AM
The test case you posted doesn't really demonstrate the issue, it doesn't even run out of the box.

Can you post more info? The current menu scrolling examples with the 3.2 beta work as expected.

StevenInc
15 Mar 2010, 3:52 AM
I will put together a working test case later this week and post it.
Thanks

StevenInc
17 Mar 2010, 6:36 PM
After attempting to recreate the problem in an isolated environment, I discovered the cause of the unpredictable behavior was a coding mistake and is not related to Library 3.2.0

I apologize for the error.

Jamie Avins
17 Mar 2010, 6:43 PM
No problem, it happens to us all :D