PDA

View Full Version : resize Ext.QuickTip



PSB
8 Sep 2010, 10:41 AM
Hello.

I try monitoring resize for textfield in Ext.QuickTip:



new Ext.ToolTip({
id:item.id+"_tt",
target:item.id,
width:item.width,
autoHide:false,
closable:true,
draggable:true,
anchor:"top",
listeners:{
show:function(){
Ext.getCmp(item.id+"_ttValue").setValue(item.getValue());

var resizer = new Ext.Resizable(this.getEl(),{
handles:"e"
});

this.getEl().on("resize",function(QT,newWidth){
alert("DF");
});
}
},
items:[{
xtype:"textfield",
id:item.id+"_ttValue"
}]
});


But after resize Ext.QuickTip - textfield is not synchronized. What I wrong?

Animal
8 Sep 2010, 12:51 PM
Why WOULD the textfield resize just because you resized some DIV element??

If you size a Container OBJECT, and that Container OBJECT has been configured to use a layout which DOES sizing, then it might work.