Results 1 to 3 of 3

Thread: How to set xtype: slider auto width?

  1. #1
    Sencha User
    Join Date
    Dec 2014
    Posts
    26
    Answers
    2
    Vote Rating
    0
      0  

    Default Answered: How to set xtype: slider auto width?

    Hi, I want to write a progress bar and I look for the api doc.
    But I have a question about the slider width. The slider width looks like must be static but I want it can autofit according panel width.
    How to do this trick?

    api sample:

    PHP Code:
    Ext.create('Ext.slider.Single', {    
      
    width200,    
      
    value50,    
      
    increment10,    
      
    minValue0,    
      
    maxValue100,    
      
    renderToExt.getBody() 
    }); 
    Thank you

  2. Look at this fiddle https://fiddle.sencha.com/#fiddle/tnq .

    Just set
    Code:
    width: '100%'

  3. #2
    Sencha User vojtech.cerveny's Avatar
    Join Date
    Jun 2015
    Location
    Ostrava, Czech republic
    Posts
    52
    Answers
    10
    Vote Rating
    5
      0  

    Default

    Look at this fiddle https://fiddle.sencha.com/#fiddle/tnq .

    Just set
    Code:
    width: '100%'

  4. #3
    Sencha User
    Join Date
    Sep 2015
    Location
    Antwerp
    Posts
    12
    Answers
    1
    Vote Rating
    0
      0  

    Default

    If the sliderField is inside a Window, the window will be stretched insanely width.
    How to fix this?

Similar Threads

  1. Slider width: always 100%?
    By mherger in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 19 Nov 2017, 4:29 AM
  2. Auto Height and auto width of ext panel not working
    By sachin sachdeva in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 13 Dec 2010, 7:49 AM
  3. Grid auto width goes past the window width?
    By TheBuzzer in forum Community Discussion
    Replies: 0
    Last Post: 3 Jul 2009, 2:17 PM
  4. column width gridpanel - auto width??
    By gurpal2000 in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 27 Nov 2007, 5:41 PM

Tags for this Thread

Posting Permissions

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