-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
how can I get the width of the moved portal child after it has been moved?
<portallayout onPortalMove='alert("portalChildMoved");'>
<portalchildren width="70%" id="portalchildrenleft"/>
<portalchildren width="30%" id="portalchildrenright"/>
</portallayout>
Panel panel = new Panel();
panel.setHeight("420px");
panel.setTitle("Title");
panel.setBorder("normal");
portalchildrenleft.insertBefore(panel,portalchildrenleft.getFirstChild());
Thanks duxb, now I can grab the dragged panel, but I still can't get the width.
This returns null:
portalMoveEvent.getDragged().getWidth()
and this returns 30% or 70%:
portalMoveEvent.getTo().getWidth()
I need to get the width/height of the dragged panel in pixels, so I can re-size the contents after the panel has been moved.
Asked: 2009-12-27 09:07:31 +0800
Seen: 573 times
Last updated: Dec 28 '09