Results 1 to 2 of 2

Thread: Slider width: always 100%?

  1. #1
    Touch Premium Member
    Join Date
    Apr 2007
    Posts
    139
    Vote Rating
    0
      0  

    Default Slider width: always 100%?

    Hi,

    I'm trying to have a slider with -/+ buttons left/right of the slider itself.

    Code:
    {
    	dock: 'bottom',
    	xtype: 'toolbar',
    	width: '100%',
    	items: [ 
    		{ 
    			xtype: 'button',
    			icon: 'images/buttons/less.png',
    			width: 40
    		},
    		{
    			xtype: 'sliderfield',
    			value: 1,
    			minValue: 0,
    			maxValue: 100
    		},
    		{ 
    			xtype: 'button',
    			icon: 'images/buttons/more.png',
    			width: 40
    		}
    	 ]
    }
    Unfortunately the slider will always assume it's 100% wide. Thus the right hand button is pushed off screen. Is there any simple way to tell it to only fill the space between the buttons?
    HTC Desire - Android: 2.2 - Kernel: 2.6.32.15-gf5a401c - Build: 2.29.405.2 - WebKit: 3.1

  2. #2
    Sencha User
    Join Date
    Sep 2015
    Location
    Antwerp
    Posts
    12
    Vote Rating
    0
      0  

    Default

    maybe with flexes ?

Similar Threads

  1. 100% Width
    By Sandeep in forum Ext Designer: Help & Discussion
    Replies: 17
    Last Post: 9 Feb 2011, 2:33 PM
  2. Grid 100% width with some columns with fixed width
    By marco76 in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 18 Nov 2008, 6:19 AM
  3. Grid with width: 100% and height: 100%
    By PHP Detonator in forum Ext 2.x: Help & Discussion
    Replies: 11
    Last Post: 14 Nov 2008, 9:46 AM
  4. 100% anchor or 100% width
    By hpet in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 6 Aug 2008, 5:22 AM
  5. Grid Width 100%
    By Rajarajeswari MS in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 18 Jun 2008, 1:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •