1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    14
    Vote Rating
    0
    amcsi is on a distinguished road

      0  

    Default Autoscroll, FitLayout, BoxMinWidth, BoxMinHeight => double scrollbars

    Autoscroll, FitLayout, BoxMinWidth, BoxMinHeight => double scrollbars


    I have a panel in a fit layout with minimum height and width set. Its owner has autoScroll on, and my problem is that when either the width or height of the panel goes below the minimum, vertical AND horizontal scrollbars appear even though when only the width or height is too low. How do I fix it so if only 1 scrollbar is needed, it only shows one?

    Example code:
    Code:
    		var viewport = new Ext.Viewport({
    			layout: 'fit',
    			autoScroll: true,
    			items: [
    				{
    					layout: 'fit',
    					boxMinWidth: 400,
    					boxMinHeight: 400,
    					items: [
    						{
    							html: 'Lol'
    						}
    					]
    				}
    			]
    		});

  2. #2
    Sencha User
    Join Date
    Sep 2010
    Posts
    14
    Vote Rating
    0
    amcsi is on a distinguished road

      0  

    Default


    Bump

    also, I don't know what I screwed up, but I somehow managed to fix this by changing the layout value of the container with autoScroll to 'anchor', and adding anchor:'100% 100%' to its child, having the child anchor to the container minus the scrollbar, but for some reason, it's the same problem again: it includes the scrollbar into the height/width calculations. So what can I do to fix this with either FitLayout or AnchorLayout?

Similar Threads

  1. Replies: 7
    Last Post: 12 Nov 2009, 10:35 AM
  2. TabPanel with FitLayout
    By franck971 in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 21 Aug 2009, 4:52 AM
  3. FitLayout Force Refresh
    By LINEMAN78 in forum Ext GWT: Help & Discussion (1.x)
    Replies: 3
    Last Post: 8 Oct 2008, 9:25 AM
  4. Double V-Scrollbars
    By booshan in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 7 Jun 2007, 7:55 AM

Tags for this Thread