PDA

View Full Version : resizable and multi TAG (????)



TAG
26 Aug 2009, 10:09 AM
Hello,
I create a object resizable following


....
<img id="pippo" scr="pippo.JPG">
....




var appi=new Ext.Resizable(idOggetto, {
wrap:true,
pinned:false,
handles: 'all',
draggable:true,
resizeChild: true,
dynamic:true
});


this code run correctly.

Now I update the HTML code in this:


...
<div id="pippo">
<img scr="pippo.JPG">
<div><b>PIPPO</b></div>
<div>bla bla bla bla bla bla</div>
<img scr="pippo2.jpg">
</div>
...


if I apply the above EXT code, the resizable Object not created correctly. This because(API DOCUMENTATION for "resize"): "...Some elements, such as a textarea or image, don't support this. To overcome that, you can wrap the textarea in a div and set 'resizeChild' to true (or to the id of the element), or set wrap:true in your config and the element will be wrapped for you automatically."
But when I test this, I haven't good result.

Would have a work around for my problem?I make mistakes?

Thanks to anyone who will give me information about.

TAG
26 Aug 2009, 11:34 PM
Can you help me?

steffenk
26 Aug 2009, 11:39 PM
look here:
http://extjs.com/forum/showthread.php?t=78398