Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Gerry on Sep 09, 2009 22:47
open dhtmlx forum
Resize of parent DIV does not cause dhtmlxLayout to redraw

I have read several posts that describe the need to have the layout properly resize itself if the parent container changes. In my case, the layout is within a <DIV> element that is sized at 100%.

Several posts ask this same question, and support has responded indicating that the resizing functionality will be in the next version. However, it didn't mention which version was the next version. Does this functionality exist in 2.5? If not, when can it be expected?

Thanks.
Answer posted by Support on Sep 10, 2009 05:36
Such functionality exists in 2.5, but layout resizes automatically only when inited on document.body.
In your case you should manually call setSizes() method for adjusting layout.
Answer posted by ndarques on Oct 13, 2009 10:32
Hello guys,

Tried out to set up a auto-resize layout in a page, thanks to provided above hint.
Bumped into a small bug though.
As you can see in provided sample, when you resize horizontally window, layout correctly resizes accordingly until you crossed a vertical cell separator. Then, separator and collapsing buttons are messed up and never return to their previous states.
Any thoughts ?


Nicolas.
Attachments (1)
Answer posted by Support on Oct 19, 2009 06:22
Answer sent by email.