Results 1 to 3 of 3

Thread: hdden option not working on io6 browser

    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
      0  

    Default 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
      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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,411
    Vote Rating
    1290
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •