Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member YetAnotherFrank's Avatar
    Join Date
    Apr 2009
    Location
    Hamburg, Germany
    Posts
    19
    Vote Rating
    0
    YetAnotherFrank is on a distinguished road

      0  

    Default [OPEN-1191] Panel setIconClass function does not work properly

    [OPEN-1191] Panel setIconClass function does not work properly


    Ext version tested:
    • Ext 3.2.2


    Adapter used:
    • ext


    css used:
    • only default ext-all.css




    Browser versions tested against:
    • FF3


    Operating System:
    • Win Vista


    Description:
    • The Ext.Element.removeClass function does not work in 3.2.2 anymore if you want to remove multiple classes at once.



    Steps to reproduce the problem:

    For example, I want to change the icon in the header of a panel and the image has two classes set like this:
    Code:
    <img class="some-class-one some-class-two" src="ext-js/resources/images/default/s.gif" id="ext-gen542">
    If I use setIconClass("some-class-three") on the panel I would expect that
    "some-class-one" and "some-class-two" would be removed and only "some-class-three" would be there instead.
    But removeClass fails to remove "some-class-one some-class-two" so "some-class-three" is added and you have
    "some-class-one some-class-two some-class-three" as a result.


    The result that was expected:
    Code:
    <img class="some-class-three" src="ext-js/resources/images/default/s.gif" id="ext-gen542">
    The result that occurs instead:
    Code:
    <img class="some-class-one some-class-two some-class-one some-class-two some-class-three" src="ext-js/resources/images/default/s.gif" id="ext-gen542">
    Debugging already done:
    • none


    Possible fix:
    • not provided

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,483
    Vote Rating
    35
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    It works as documented.

    Code:
    Ext.get("ext-gen8070").removeClass(["x-grid3-hd-inner", "x-grid3-hd-3"]);
    Just removed both classes from that grid header.

  3. #3
    Ext JS Premium Member YetAnotherFrank's Avatar
    Join Date
    Apr 2009
    Location
    Hamburg, Germany
    Posts
    19
    Vote Rating
    0
    YetAnotherFrank is on a distinguished road

      0  

    Default


    Then Ext.Panel.setIconClass does not use the "removeClass" function properly.
    In the docs it says: "This method will replace any existing icon class if one has already been set". But
    Code:
    Ext.getCmp("ext-comp-1187").setIconClass("testxxxxxtest")
    just adds "testxxxxxtest" and does not remove any existing classes.

  4. #4
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Updated the thread title, thanks for the report. Documentation may need to be adjusted.

Similar Threads

  1. Replies: 0
    Last Post: 20 May 2010, 12:45 PM
  2. Grid with search function - paging doesn't work properly....
    By wurstkuchen in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 15 Apr 2010, 4:20 AM
  3. [FIXED-175][3.0.0] setIconClass not rendering icon properly
    By piyushjain7 in forum Ext 3.x: Bugs
    Replies: 2
    Last Post: 24 Aug 2009, 10:30 PM
  4. Can't get button.setIconClass to work.
    By omermx in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 20 Jul 2009, 5:16 AM
  5. [2.1] setIconClass does not work for individual tab
    By nicholasnet in forum Ext 2.x: Bugs
    Replies: 7
    Last Post: 25 Oct 2008, 5:56 AM

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar