11 Dec 2006 8:25 PM #1
GridView wrapEl width not updated in autoSize
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 #2
It's auto width, which is correct. Are you having a problem with it?
12 Dec 2006 6:04 PM #3
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.
By wq7278 in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 25 Mar 2007, 9:51 PM
By mapo in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 12 Mar 2007, 8:18 PM
By byuva in forum Ext 1.x: Help & DiscussionReplies: 9Last Post: 19 Jan 2007, 3:47 AM
By ernestlambert in forum Community DiscussionReplies: 0Last Post: 1 Dec 2006, 7:42 AM
By Animal in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 28 Sep 2006, 11:21 AM