and basically contains a form containing a table with a bunch of input fields (and labels). The text and body fits comfortably at about 1000px wide.
Cells “b”, “c”, “d”, etc are basically grids.
When I resize the browser horizontally, the grids all resize automatically… works great. However, the upper area (cell “a”) truncates the content. There is no way to scroll to the right without making the browser window bigger.
I want a horizontal scrollbar to show up if the content of the
doesn’t fit in the cell. I thought the “overflow:auto;” style would do it, but it doesn’t work.
I also tried a few permutations like setting the cell width to 1000 and/or doing fixSize, neither had any effect
searchLayout.cells(“a”).setWidth(1000);
searchLayout.cells(“a”).fixSize(true, true);
It would take too long to strip down my complex application into some kind of stand alone demo that i could send you.
The question is pretty straight forward… if you have a “5E” layout and on “a” cell I attach a DIV (which basically contains a form/table with labels and entry fields – see attachment), and on the other panes (directly below it) there are grids and toolbars attached. When you shrink the window horizontally, the grid columns properly resize, but the top “a” cell containing the div remains constant and is clipped. I would expect a horizontal scrollbar there.
The attached DIV looks like this (note, this is part of a JSP so ignore the <% %> directives, they are resolved by the time it is loaded in the browser)
I would think that "overflow:auto; and a fixed width should cause a horizontal scroll bar to appear?
Then you attach an onject (i.e.div) by attachObject method you can face with resize issue.
Some ways to avoid this:
use dhtmlxForm (not HTML) and method attachForm() dhtmlx.com/docs/products/dht … ayout.html
And you will have all the scrolls you need, because the form containes resizes with the layout cell it atached in