PDA

View Full Version : BUG window tool



jamesjara
7 Apr 2010, 9:20 AM
Hi i think i have a bug , maybe posted before but i dont now how to search it....

Well i have some tool buttons with handlers..
THE PROBLEM IS..
originial order: minimize, maximize , close
When i click MAXIMiZE , the window expand and the tool CLOSE lost the orden and the order is minimize, CLOSE, MAXIMIZE



var $id_rand = new Ext.Window({
id: $rand ,
maximizable: true,
minimizable: true,
title: $titulo ,
items : $modulo,
hidden : true,
renderHidden : true,
closeAction: 'hide',
monitorResize: true,
renderTo: Ext.getCmp('$id2_hash').body,
constrainHeader: true,
bodyStyle: 'padding: 1px 1px 1px 1px',
layout: 'fit',
constrain: true,
deferredRender: false,
tools:[
{
id:'minimize',
qtip: '".$mod_gen_ventas['tool_minimize']."',
handler: function(){
//MINIMZA LA VENTA, LA OCULTA Y DEJA ICONO EN EL TASKBAR
$idd.minimize();
}
},
{
id:'maximize',
qtip: '".$mod_gen_ventas['tool_maximize']."',
handler: function(){
//MAZIMIXA LA VENTANA
$idd.maximize();
}
},
{
id:'close',
qtip: '".$mod_gen_ventas['tool_close']."',
handler: function(){
//OCULTA Y ELIMINA EL ICONO AL TASKBAR
$idd.hide();
var tbar = Ext.getCmp('$id2_hash').getTopToolbar();
tbar.remove($nombre_hash);
tbar.doLayout();
}
}
]
});
Images
Before
http://img682.imageshack.us/i/innosystem2.jpghttp://img256.imageshack.us/i/innosystem1.jpg/http://img256.imageshack.us/img256/5776/innosystem1.jpg
After
http://img682.imageshack.us/img682/8866/innosystem2.jpg