Doing this with Javascript is pretty simple. I just get the window width, the left position of the grid layout, and I set the layout width to the window width - grid left - a little extra space for good measure. That works fine, but the problem is the vertical scrollbar in the grid does not move. It only moves once the user starts scrolling horizontally.
I tried using
Code: Select all
grid.render()
Does anyone have a suggestion on how to do this properly?
Here is the code I'm using:
Code: Select all
resizeInqWindow = function() {
var objGrid = getObj('inq_grid');
var puiDim = pui.getDimensions(pui.runtimeContainer);
var winSize = pui.getWindowSize();
var intWinWidth = winSize.width;
var intGridWidth = intWinWidth - $('#inq_grid_layout').position().left - 30;
applyProperty('inq_grid_layout', 'width', intGridWidth.toString() + 'px');
objGrid.grid.render();
};
This is what the screen looks like after it is resized. The vertical scroll bar stays where it is until the user scrolls using the horizontal scroll bar.