-
5 Apr 2012 7:29 AM #1
RC2 Container autoScroll minHeight problem in Chrome
RC2 Container autoScroll minHeight problem in Chrome
I was hoping that RC2 would fix my layout issues but it has not. I am having a problem with autoScroll behavior and minHeight in Chrome 17.
When I minimize my container past the minHeight size scrollbars appear as expected but resizing back does not remove them. Also horizontal scroll bars appear incorrectly.
Here is the best example I could show. Resize the browser window to bring up the scroll bars, then maximize the window so they go away. Except that they do not go away as they should.
I do not seem to have this problem in IE8 or FF 10 but I do get unnecessary horizontal scrollbars.
Code:Ext.create('Ext.container.Viewport', { layout: 'fit', items: [ { xtype: 'container', layout: 'card', autoScroll: true, items: [ { xtype: 'container', minHeight: 400, layout: { type: 'vbox', align: 'stretch' }, items: [ { xtype: 'component', flex: 1, html: 'Info 1' }, { xtype: 'component', flex: 1, html: 'Info 2' }, { xtype: 'component', flex: 1, html: 'Info 3' } ] } ] } ] });
-
5 Apr 2012 8:59 AM #2
Can I get you to send a screen to make sure we are looking at the same thing?
Thanks,
Scott.
-
5 Apr 2012 9:22 AM #3
-
5 Apr 2012 9:28 AM #4
Great, thanks...
Scott.
-
6 Apr 2012 5:22 AM #5
Hey Scott can you respond with an update when you get some more information on this one? Is it a bug or can I just change something in my configuration to get it to behave properly?
Thanks.
-
6 Apr 2012 6:01 AM #6
This has been reported as a bug.
Regards,
Scott.
-
12 Apr 2012 5:05 AM #7
Using non-overnested layouts, I do not see any problems with the latest code.
If I open the debugger to make the browser viewport height less than 400, then it scrolls the three panels, each approx 133px high.Code:Ext.create('Ext.container.Viewport', { layout: 'fit', autoScroll: true, items: [{ xtype: 'container', minHeight: 400, layout: { type: 'vbox', align: 'stretch' }, items: [{ xtype: 'component', flex: 1, html: 'Info 1', style: 'background-color: yellow' }, { xtype: 'component', flex: 1, html: 'Info 2', style: 'background-color: red' }, { xtype: 'component', flex: 1, html: 'Info 3', style: 'background-color: blue' }] }] });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
-
12 Apr 2012 5:09 AM #8
I do see the horiz scrollbar though, so I'd suggest this:
Code:Ext.create('Ext.container.Viewport', { layout: 'anchor', items: [{ xtype: 'container', autoScroll: true, width: '100%', minHeight: 400, layout: { type: 'vbox', align: 'stretch' }, items: [{ xtype: 'component', flex: 1, html: 'Info 1', style: 'background-color: yellow' }, { xtype: 'component', flex: 1, html: 'Info 2', style: 'background-color: red' }, { xtype: 'component', flex: 1, html: 'Info 3', style: 'background-color: blue' }] }] });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
-
12 Apr 2012 5:13 AM #9
Or, if you are targeting modet browsers:
Code:Ext.create('Ext.container.Viewport', { layout: 'fit', overflowY: 'auto', items: [{ xtype: 'container', minHeight: 400, layout: { type: 'vbox', align: 'stretch' }, items: [{ xtype: 'component', flex: 1, html: 'Info 1', style: 'background-color: yellow' }, { xtype: 'component', flex: 1, html: 'Info 2', style: 'background-color: red' }, { xtype: 'component', flex: 1, html: 'Info 3', style: 'background-color: blue' }] }] });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
-
12 Apr 2012 6:07 AM #10
Thanks Animal, I will try out some of these suggestions.
The example was stripped down but still real world. I do not think it was over-nested, my application uses a card layout to hide and show different application screens. I removed the header, toolbar, and footer from the viewport to simplify the example. Realistically there are dozens of cards in the card layout.
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-5861
in
4.1.


Reply With Quote
