Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Jan 2011
    Posts
    2
    Vote Rating
    0
    phil_g is on a distinguished road

      0  

    Default [FIXED-EXTJSIV-954]Ext.slider.Single throws an error when initialized with disabled

    [FIXED-EXTJSIV-954]Ext.slider.Single throws an error when initialized with disabled


    When I create a slider with an initial config of "disabled: true" in Ext JS beta 2 an error is thrown:
    this.el is undefined
    this.el.addCls(this.slider.disabledCls); ext-all-debug.js (line 24102)

    Here is the code that results in the error:

    Code:
    Ext.create('Ext.slider.Single', {
            disabled: true,
            width: 200,
            value: 0,
            increment: 1,
            minValue: 0,
            maxValue: 100,
            renderTo: Ext.getBody()
        });
    Disabling the slider after initialization works fine, however:

    Code:
        var slider = Ext.create('Ext.slider.Single', {
            width: 200,
            value: 0,
            increment: 1,
            minValue: 0,
            maxValue: 100,
            renderTo: Ext.getBody()
        });
        slider.disable();

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,169
    Vote Rating
    674
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Fixed, thanks for the report.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext JS Premium Member
    Join Date
    Jan 2011
    Posts
    2
    Vote Rating
    0
    phil_g is on a distinguished road

      0  

    Default Still broken in IE (Ext Beta 3)

    Still broken in IE (Ext Beta 3)


    As of Ext Beta 3 this is fixed in firefox/chrome, but still broken in IE

  4. #4
    Sencha User
    Join Date
    Aug 2011
    Posts
    1
    Vote Rating
    0
    Yannick Battail is on a distinguished road

      0  

    Default


    I have the same bug for version 4.0.2a with IE 8 and 9

  5. #5
    Sencha Premium Member
    Join Date
    Aug 2007
    Location
    Pilsen, Czech Republic
    Posts
    40
    Vote Rating
    0
    dherbolt is an unknown quantity at this point

      0  

    Default


    +1 ExtJS 4.0.7, MSIE doesn't work. Ext.slider.Slider.onDisable is called before thumbs are renderd, but this method suppose that they are rendered yet.

  6. #6
    Ext JS Premium Member
    Join Date
    Feb 2010
    Posts
    28
    Vote Rating
    0
    jlindbergh is on a distinguished road

      0  

    Default Fixed?

    Fixed?


    Is this really fixed? I'm using Ext 4.0.7.
    When initializing a slider using the following code I get an error in Internet Explorer 9, although it works fine in Chrome and Firefox.
    Code:
    {
        xtype: "slider",
        value: 100,
        disabled: true,
        padding: 3,
        name: "opacity-slider",
        anchor: "96%",
        tipText: function(theThumb) {
            return String(theThumb.value) + '%';
        }
    }
    The error is in ext-all-debug.js line 90276. I only have the swedish error message so I won't type that out, but the problem is that thumb.el is undefined and it fails when doing el.getXY().
    If I initialize the slider without disabled: true I have no problems...

Similar Threads

  1. Replies: 1
    Last Post: 11 Apr 2011, 8:12 PM
  2. [FIXED-EXTJSIV-334] Multi slider in forms
    By Morkai in forum Ext:Bugs
    Replies: 1
    Last Post: 25 Mar 2011, 6:06 PM
  3. Replies: 2
    Last Post: 12 Mar 2011, 8:51 PM
  4. Replies: 6
    Last Post: 19 Jan 2010, 2:07 PM
  5. Replies: 9
    Last Post: 11 Jun 2009, 3:08 AM

Thread Participants: 4

Tags for this Thread