javascript - how to handle the rotation or orientation in sencha? -


i'm working on extjs , came across 1 small problem , wen resize window works fine execpt disabled component....

before resizing browser disabled component looks fine enter image description here

but after resizing browser panel , button behind disabled css exanding css not enter image description here

here's code:

    var topdetailpanel = new ext.panel(     {         flex: 1,         padding: 1,         disabled: false,         monitororientation:true,         layout: {             type: 'vbox',             pack: 'center',             align: 'stretch'         },         stretchx: true,         items: [         {             xtype: 'button',             id: 'topdetailid',             flex: 1,             basecls: 'round',             monitororientation:true,             stretchx: true,             html: noresult,             handler: function ()             {                 window.location = 'detailspanel.html?type=' + typeval + '&event=' + eventval + '&price=' + priceval + '&free=0&pos=1'             }}]     });     var bottomdetailpanel = new ext.panel(     {         flex: 1,         id: 'ctrlbtn2',         padding: 1,         monitororientation:true,         disabled: true,         layout: {             type: 'vbox',             pack: 'center',             align: 'stretch'         },         stretchx: true,         items: [         {             xtype: 'button',             flex: 1,             monitororientation:true,             id: 'bottomdetailid',             basecls: 'round',             stretchx: true,             html: noresult,             handler: function ()             {                 window.location = 'detailspanel.html?type=' + typeval + '&event=' + eventval + '&price=' + priceval + '&free=0&pos=2'             }}]     }); 

and disabling use :

bottomdetailpanel.setdisabled(true);

please help.......................

thank in advance.......

hey check friend faced same issue..might you.

http://www.sencha.com/forum/showthread.php?115984-1.0-form-orientation-change-incomplete-redraw

and in case got right answer somewhere please post here..


Comments

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -