I have a window with a 3T layout inside. The width of the bottom 2 cells is not specified, so each cell is exactly 50% of the window.
I want the bottom 2 cells to always be 50% even after the window is re-sized.
Is this possible?
I have a window with a 3T layout inside. The width of the bottom 2 cells is not specified, so each cell is exactly 50% of the window.
I want the bottom 2 cells to always be 50% even after the window is re-sized.
Is this possible?
I want to maintain 50/50 horizontally.
If this was valid it would be perfect: theLayout.setAutoSize(“abc”, “bc”);
For horizontal, ABC all need to be re-sized so that b and c evenly divide the layout.
For vertical, I want a to keep the same 200px and bc to grow or shrink.
The layout is inside of a dhtmx window, so I suppose inside onResizeFinish and onMaximize events it might be possible to get the width of A then set B’s width to 50%.
I’ll try it now.
Try the next approach:
layout = new dhtmlXLayoutObject(document.body, "3T", "dhx_blue");
layout.attachEvent("onResizeFinish", function(){
w = document.documentElement.offsetWidth/2;
layout.cells("b").setWidth(w);
layout.cells("c").setWidth(w);
});
It is working with a bit of a slight mod:
layout.attachEvent("onResizeFinish", function(){
w = layout.cells("a").getWidth() /2;
layout.cells("b").setWidth(w);
layout.cells("c").setWidth(w);
});
Dhtmlx APIs are great.
You are welcome!
Your tools are amazing. Keep up the great work.