|
|
@@ -105,11 +105,10 @@ Ext.define('saas.view.main.Main', {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- margin: '0 0 0 0',
|
|
|
+ //margin: '0 0 0 0',
|
|
|
xtype: 'tbtext',
|
|
|
cls:'nav-realname',
|
|
|
bind: {
|
|
|
- //tooltip: '{account.realname}',
|
|
|
html: '{account.realname}'
|
|
|
},
|
|
|
style:{
|
|
|
@@ -143,21 +142,7 @@ Ext.define('saas.view.main.Main', {
|
|
|
iconCls:'x-fa fa-power-off',
|
|
|
handler: 'onLogout'
|
|
|
}]
|
|
|
- } ,
|
|
|
- listeners:{
|
|
|
- 'mouseover':function(btn){
|
|
|
- btn.menu ? (btn.menu.isVisible() ? '' : btn.showMenu()) : '';
|
|
|
- },
|
|
|
- 'mouseout':function(btn,e){
|
|
|
- window.setTimeout(function(){
|
|
|
- var cx = e.browserEvent.clientX, cy = e.browserEvent.clientY;
|
|
|
- var btnLayout = btn.el.dom.getBoundingClientRect();
|
|
|
- if(cx <= btnLayout.left || cx >= btnLayout.left+btnLayout.width || cy <= btnLayout.top) {
|
|
|
- btn.hideMenu();
|
|
|
- }
|
|
|
- }, 10);
|
|
|
- }
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
]
|
|
|
},
|