
Ext.Viewport.on('orientationchange',function(){ var me=this,c=me.down('myCarousel'); var screen = (window.innerWidth > window.innerHeight) ? "portrait" :"landscape"; if(screen=='portrait'){ c.hide(); }else if(screen=='landscape'){ c.show(); } window.localStorage.setItem("screen", screen); })