Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1041 in a recent build.
  1. #1
    Sencha User cyberwombat's Avatar
    Join Date
    Oct 2011
    Posts
    237
    Vote Rating
    2
    cyberwombat is on a distinguished road

      0  

    Default styleHtmlContent is not really a boolean

    styleHtmlContent is not really a boolean


    styleHtmlContent is the same regardless of the value being true, 'true', false, 'false', 1, 0, '1', '0'. These all equal true. Only null makes it false. The docs says the default is null but it also claims it's a boolean which I don't think it is -it's a little confusing.

    I am looking at this page: http://docs.sencha.com/touch/2-0/#!/...yleHtmlContent

  2. #2
    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


    Thank you for the report.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    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


    Do you have an example of where you are seeing this? There is a falsey check on this and we will for a forced Boolean on apply. As far as the documentation goes, I'll check if the parser can be changed to properly handle that as null has a special meaning within the library and is used to improve instantiation performance.

    Sencha Inc

    Jamie Avins

    @jamieavins

  4. #4
    Sencha User cyberwombat's Avatar
    Join Date
    Oct 2011
    Posts
    237
    Vote Rating
    2
    cyberwombat is on a distinguished road

      0  

    Default


    I tested this on a list view.
    Code:
    Ext.define("MyApp.view.FriendsList", {
        extend: "Ext.List",
        xtype: "friendslist",
        config: {
            indexBar: true,
            styleHtmlContent: null,   //<--- here  - only null or commented worked for me
            grouped: false,
            locked: true,
            itemTpl: '<div <tpl if="avatar">style="background: url(http://src.sencha.io/jpg100/72/{avatar});"</tpl> class="avatar"></div><div class="name">{name}</div>'
        }
    });

  5. #5
    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


    Both issues should now be resolved for the next release.

    Sencha Inc

    Jamie Avins

    @jamieavins

  6. #6
    Sencha User
    Join Date
    Feb 2012
    Location
    Virginia, USA
    Posts
    21
    Vote Rating
    0
    fhellwig is on a distinguished road

      0  

    Default Still not resolved in 2.0.1rc

    Still not resolved in 2.0.1rc


    The applyStyleHtmlContent method still wraps the argument in a Boolean object.

    Therefore, the updateStyleHtmlContent method sees a false as true since the
    Code:
    if (styleHtmlContent) {
        ...
    }

    statement evaluates as true since any object (except for null) is considered true.

    Please fix soon. Thanks.

  7. #7
    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


    Fair enough.

    Sencha Inc

    Jamie Avins

    @jamieavins

  8. #8
    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


    Actually, since it's a forced boolean, how can it ever be an Object unless it's being called directly.

    Sencha Inc

    Jamie Avins

    @jamieavins

  9. #9
    Ext JS Premium Member
    Join Date
    Sep 2009
    Posts
    1
    Vote Rating
    0
    IntegrifyDev is on a distinguished road

      0  

    Default


    Still appears to not work in 2.2.0 (Build date: 2013-04-11 12:51:10)
    Code:
    Ext.define('IntegrifyM.view.instance.Detail',   
      {       
      extend:'Ext.Panel',        
      alias:'widget.instance_detail',        
      config: {            
            styleHtmlContent:false //setting to null does work        
      },
       initialize : function() {
                  this.callParent(arguments);        
       }
    });

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