-
25 Feb 2011 5:01 PM #1
[FIXED]Temporary scrollbars affect width of resized container
[FIXED]Temporary scrollbars affect width of resized container
I have a viewport with layout: fit, an hbox panel with two panels inside of it. During resizing the window smaller, horizontal and vertical scrollbars appear. Children resize themselves, but after letting go of the window the scrollbars disappear but the children are sized to leave space for it on the side.
Steps:
1. Resize browser window smaller, vertically and horizontally.
2. Let go of the browser window normally, before the scrollbars disappear
3. Scrollbars disappear, but children are not the full width of the browser window, there is space where the scrollbar used to be on the right.
Below is some sample code with different titles and no margins, but you should still see the bug. Attached are screenshots with Firefox 3.6.13, OS X 10.6. Does not happen in Chrome.
Initial:Code:Ext.onReady(function() { var viewport = new Ext.container.Viewport({ layout: 'fit', items: [{ xtype: 'panel', title: 'HBox', layout: 'hbox', items: [{ title: 'Stuff', flex: 1, items: [{ title: 'Default' }, { title: 'Everything but images' }] }, { xtype: 'splitter', height: 500 }, { title: 'Other stuff', flex: 1, items: [{ title: 'Cookies' }] }] }] }); });

After resizing the browser smaller:

-
26 Feb 2011 2:47 PM #2
Can anyone confirm this bug, or is it just my machine?
-
26 Feb 2011 10:43 PM #3
I can confirm this, seems it only happens on FF.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
27 Feb 2011 3:30 PM #4
I've committed a fix. The code to get viewport width had been changed (by me) incorrectly while looking at another layout issue. It's been reverted to how it was before.
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FIXED] Draggable is ignoring width/height of proxy/ghosted components in a container
By Jan Nawara in forum Ext GWT: Bugs (2.x)Replies: 2Last Post: 25 Aug 2009, 1:57 PM -
Grid doesn't show scrollbars when columns resized and NO data
By wgpubs in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 5 Aug 2009, 10:13 PM -
[FIXED] [1.1.1] Table.getSelectedItems() and SM.MULTI-might affect all lists
By jraue in forum Ext GWT: Bugs (1.x)Replies: 1Last Post: 27 Oct 2008, 8:43 AM -
[SOLVED] 100% width Grid is not resized when browser is
By skaue in forum Ext 2.x: Help & DiscussionReplies: 9Last Post: 10 Sep 2008, 4:44 AM -
[CLOSED] Region cannot be resized in a BorderLayout'd container
By sdc in forum Ext GWT: Bugs (1.x)Replies: 11Last Post: 19 Aug 2008, 6:26 AM


Reply With Quote