View Full Version : GridView wrapEl width not updated in autoSize
11 Dec 2006, 8:25 PM
Noticed that only the wrapEl's height is updated directly in autoSize via
The width of the wrapEl should also be updated as well.
12 Dec 2006, 6:21 AM
It's auto width, which is correct. Are you having a problem with it?
12 Dec 2006, 6:04 PM
I guess the problem only arises for example in my case, whereby I extend the grid's autoSize() to do a getView().fitColumns().
This results in the problem whereby the height is correctly computed via updateWrapHeight, while width is remains as the original width style defined in the grid container's html markup. Subsequent calls to autoSize() will space the columns out nicely once the grid is actually rendered.
Visually, what happens is that at the first moment that the grid is displayed in the layout, the height is correct, but all the columns are squashed into the originally defined width. A delayed call to autoSize() can be added to space out all the columns correctly thereafter, but incurs quite an extra hit on cpu cycles, as well as a visual glitch whereby the columns appears squashed for a split second then expand out to occupy the auto width space.
In the meantime, I've overriden updateWrapHeight() to simply always setSize to both the computed height and width - works great now.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.