PDA

View Full Version : Problem in resizing a label



LostInExtjs
9 Mar 2009, 10:08 PM
Hi!
Im having problem in resizing a label
I declare a label like this
<label id="lbl" style="border:1px solid black">label</label>and call a function to resize it

function resizeIt(lblID)
{
var basic2=new Ext.Resizable(lblID,{
handles:'all',
transparent:true
})
}
if i resize using the above code,i cant make the label any shorter after a certain limit.
Its minimum size equals to the text inside the label..why is that so??Am i making a mistake..
Another thing is if i set the wrap:true then i can make it shorter but then its border vanishes..although i dont think i should be using wrap in a label..
Can someone help me out here??