ddmb
June 12, 2019, 2:07pm
#1
window_resize_grid_problem.zip (151.9 KB)
steps to reproduce:
download and unpack .zip file
launch start_with_this.htm
click on LAUNCH (content is loaded into grid container)
resize the browser window → it’s fine
click again to LAUNCH (content is loaded again into grid container)
resize the browser window → it’s not good (grid’s height is constant now)
I also noticed that setSizes() is not even needed → I commented it out
Please, try to destruct the old dhtmlxGrid object before creating a new one:
function launchGrid() {
if (typeof qmOverviewGrid === 'object'){
qmOverviewGrid.destructor()
}
qmOverviewGrid = new dhtmlXGridObject('someGridContainer');
ddmb
June 12, 2019, 9:27pm
#3
Did this work for you? Because I tried it and I still have the issue.
Please, try to change the sizes of the
<div id="someGridContainer" style="width:100%;height:100%;border-bottom: 1px solid black"></div>
not the
<div id="someGridContainerWrap"
You can check that sizes of the someGridContainer
container are not changing after the resize, while the grid takes the sizes of that container:
qmOverviewGrid = new dhtmlXGridObject('someGridContainer');