Results 1 to 2 of 2

Thread: ST2.2.1 Custom Button component doesnt show icon

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    88

    Default Answered: ST2.2.1 Custom Button component doesnt show icon

    Hi there,

    I have a toolbar button as a custom component which I use frequently.
    Code:
    /**
    * Button to toggle slidenavigation menu.
    */
    Ext.define('myApp.ux.button.MenuButton', {
        extend: 'Ext.Button',
        xtype: 'menubutton',
        config: {
            itemId : 'menuButton',
            iconCls: 'more',
            iconAlign: 'left',
            align: 'left',
            action: 'toggle-menu',
            ui: 'action'
        }
    });
    The Button works as expected when I include it via xtype in other components.
    Dut the icon is not shown. The icon span in the dom has the class x-hidden.
    When I swap it with x-shown, which it should have, the icon appears.

    Update:
    This should have been under Bugs Section. Can I move it there myself?
    Last edited by karazy; 17 Jul 2013 at 1:28 AM. Reason: wrong section

  2. I just ran into the same issue and made a post to the Bugs forum for us: http://www.sencha.com/forum/showthre...class&p=982106

    Also I found a workaround -- set icon: null in the subclass' config

  3. #2
    Sencha Premium Member
    Join Date
    Apr 2008
    Posts
    369
    Answers
    3

    Default

    I just ran into the same issue and made a post to the Bugs forum for us: http://www.sencha.com/forum/showthre...class&p=982106

    Also I found a workaround -- set icon: null in the subclass' config
    Chief Architect @ Jarv.us Innovations
    Co-captain @ Code for Philly

    Jarvus builds and optimizes top-quality Sencha Touch and ExtJS apps for open-source projects and clients of all sizes.

    Don't waste time with bugs that have already been found and fixed by the community, compile our tried and tested hotfixes packages into all your projects: https://github.com/JarvusInnovations/sencha-hotfixes

Posting Permissions

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