Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    3
    Vote Rating
    0
    Nishupnr is on a distinguished road

      0  

    Default hdden option not working on io6 browser

    hdden option not working on io6 browser


    Ext.define('Ext.HtmlButton', {
    extend: 'Ext.Button',
    xtype: 'htmlbutton',
    alias : 'widget.htmlbutton',
    updateText: function(text) {
    var element = this.textElement;

    if (text) {
    element.show();
    element.setHtml(text);
    }
    else {
    element.hide();
    }
    }
    });
    ------------

    xtype : 'navigationbar',
    docked : 'bottom',
    ui : 'light',
    items :[{
    text : '<div>Send</div>',
    ui : 'gray',
    cls : 'smallcls',
    itemId : 'sentbtn',
    align : 'left',
    iconMask: true,
    hidden:true,
    xtype : 'htmlbutton'
    }]

    I have a problem with above code.... This htmlbutton now displaying on the io6 browser and chrome version above 17+ . But its works on the previous ios browsers and chrome browsers

    Please help

  2. #2
    Sencha User
    Join Date
    Sep 2012
    Posts
    3
    Vote Rating
    0
    Nishupnr is on a distinguished road

      0  

    Default


    In the core file

    hide: function() {
    this.setHidden(true);
    },

    This function is not working new browsers (io6 , chrome version above 17)

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,651
    Vote Rating
    899
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    It's working for me. This code:

    Code:
    Ext.define('Ext.HtmlButton', {
        extend     : 'Ext.Button',
        xtype      : 'htmlbutton',
        alias      : 'widget.htmlbutton',
        updateText : function (text) {
            var element = this.textElement;
    
            if (text) {
                element.show();
                element.setHtml(text);
            }
            else {
                element.hide();
            }
        }
    });
    
    Ext.application({
        name   : 'Test',
    
        launch : function () {
    
            Ext.Viewport.add({
                xtype         : 'navigationview',
                navigationBar : {
                    docked : 'bottom',
                    ui     : 'light',
                    items  : [
                        {
                            text     : '<div>Send</div>',
                            ui       : 'gray',
                            cls      : 'smallcls',
                            itemId   : 'sentbtn',
                            align    : 'left',
                            iconMask : true,
                            hidden   : true,
                            xtype    : 'htmlbutton'
                        }
                    ]
                },
                items         : [
                    {
                        html : 'Foo'
                    }
                ]
            });
    
        }
    });
    is producing this result in iOS 6 (also Chrome 21 shows the same):

    Screen Shot 2012-09-24 at 7.43.06 AM.jpg
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread