Hybrid View

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Virginia, USA
    Posts
    490
    Vote Rating
    -1
    vtswingkid is on a distinguished road

      0  

    Exclamation [FIXED] [3.0.0]Element.getColor no longer accepts empty string prefix - Fix included

    [FIXED] [3.0.0]Element.getColor no longer accepts empty string prefix - Fix included


    Recommend color be set the way it was in 2.2.1.


    Code:
     
            getColor : function(attr, defaultValue, prefix){
                var v = this.getStyle(attr),
                    //color = prefix || '#',
                    color = typeof prefix == "undefined" ? "#" : prefix,
                    h;
     
                if(!v || /transparent|inherit/.test(v)){
                    return defaultValue;
                }
                if(/^r/.test(v)){
                    Ext.each(v.slice(4, v.length -1).split(','), function(s){
                        h = parseInt(s, 10);
                        color += (h < 16 ? '0' : '') + h.toString(16); 
                    });
                }else{
                    v = v.replace('#', '');
                    color += v.length == 3 ? v.replace(/^(\w)(\w)(\w)$/, '$1$1$2$2$3$3') : v;
                }
                return(color.length > 5 ? color.toLowerCase() : defaultValue);
            },

  2. #2
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    or use isString?

    Code:
            getColor : function(attr, defaultValue, prefix){
                var v = this.getStyle(attr),
                    //color = prefix || '#',
                    color = isString(prefix) ? prefix : "#" ,
                    h;

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,108
    Vote Rating
    503
    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


    Thanks for the report, this is fixed in SVN.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  4. #4
    Sencha User
    Join Date
    Oct 2013
    Posts
    1
    Vote Rating
    0
    Sachin ks is on a distinguished road

      0  

    Default Color Picker

    Color Picker


    how select color picker?i have to select the colors like how we select the date from date field.



    thanks
    Sachin

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