View Full Version : ANY Help w/ Portal DnD

16 Jul 2009, 12:59 PM
I am having a problem w/ portal/portlet drag-n-drop.

We have two columns - one 60% of the screen, another 40% of the screen (who the hell knows what the screen resolution is on the end-user's box..)

I need to know what the _body_ width of the panel is _after_ it has been dropped into a new column. and I can't freaking get it. I have looped thru every property of the event argument; I can't find ANYTHING that tells me.

I can get the _column_ width, but its different from the body width of the portlet panels.

ANY help would save me additional hours of slowly banging my head on my keyboard.


16 Jul 2009, 3:38 PM
portlet.getWidth() ?

If you want to do it from an event handler, you need to get the portlet object first.

17 Jul 2009, 11:36 AM
Yes I can get the width already - what i need to know is this:

We have a portal w/ two columns of unequal width (60/40). When a portlet is dragged from one column to another column, the size changes -I need to get the _body_ width of the portlet _after_ the drag is completed.

We're displaying charts in the portlets, and I need to know what size to generate the chart when the body width changes.


17 Jul 2009, 6:46 PM
_body_ width --> portlet.body.getWidth(true) ?

_after_ the drag --> set up event listener that performs the above code

ain't that simple?