[CLOSED] [IE9] Submenu startmenu desktop doesn't stretch with larger text

  1. #1

    [CLOSED] [IE9] Submenu startmenu desktop doesn't stretch with larger text

    Hi,

    In IE9:

    Change one of the submenu's of the desktopexample ( Start --> All --> ...then use some long text in one of the menuitems)

    For example:

    <ext:MenuItem ID="MenuItem4" runat="server" Text="All" Icon="Folder" HideOnClick="false">
                            <Menu>
                                <ext:Menu ID="Menu2" runat="server">
                                    <Items>
                                        <ext:MenuItem Text="Add Customer" Icon="Add">
                                            <Listeners>
                                                <Click Handler="#{winCustomer}.show();" />
                                            </Listeners>
                                        </ext:MenuItem>
                                        <ext:MenuItem Text="Company Info" Icon="Lorry">
                                            <Listeners>
                                                <Click Handler="#{winCompany}.show();" />
                                            </Listeners>
                                        </ext:MenuItem>
                                        <ext:MenuItem Text="Layout invoer rentreservering" Icon="World">   <! -- THIS IS THE LONG ONE -->
                                            <Listeners>
                                                <Click Handler="#{winBrowser}.show();" />
                                            </Listeners>
                                        </ext:MenuItem>
                                        <ext:MenuItem Text="Create dynamic" Icon="World">
                                            <Listeners>
                                                <Click Handler="createDynamicWindow(#{MyDesktop});" />
                                            </Listeners>
                                        </ext:MenuItem>
                                    </Items>
                                </ext:Menu>
                            </Menu>
                        </ext:MenuItem>
    You will see that the menu item width is too short...

    I'm experiencing this problem on my production site.

    Regards,

    Martin
    Last edited by Daniil; May 21, 2011 at 1:41 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I cannot reproduce with latest code.
    Try to update from SVN and retest
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Hi,

    If you cannot update now then try to add the following script to the page
    Ext.override(Ext.layout.MenuLayout, {
        doAutoSize : function(){
            var ct = this.container, w = ct.width;
            if(ct.floating){
                if(w){
                    ct.setWidth(w);
                }else if(Ext.isIE){
                    ct.setWidth(Ext.isStrict && (!Ext.isIE6) ? 'auto' : ct.minWidth);
                    var el = ct.getEl(), t = el.dom.offsetWidth; // force recalc
                    ct.setWidth(ct.getLayoutTarget().getWidth() + el.getFrameWidth('lr'));
                }
            }
        }
    });
    Vladimir Shcheglov
    Sr. Developer
  4. #4
    Quote Originally Posted by Vladimir View Post
    Hi,

    If you cannot update now then try to add the following script to the page
    Ext.override(Ext.layout.MenuLayout, {
        doAutoSize : function(){
            var ct = this.container, w = ct.width;
            if(ct.floating){
                if(w){
                    ct.setWidth(w);
                }else if(Ext.isIE){
                    ct.setWidth(Ext.isStrict && (!Ext.isIE6) ? 'auto' : ct.minWidth);
                    var el = ct.getEl(), t = el.dom.offsetWidth; // force recalc
                    ct.setWidth(ct.getLayoutTarget().getWidth() + el.getFrameWidth('lr'));
                }
            }
        }
    });
    Vladimir..

    It's solved when installing latest SVN version. Thanks for the workaround though !

    Martin

Similar Threads

  1. Toolbox Menu doesn't show submenu in iPad
    By sky73rx3 in forum 1.x Help
    Replies: 3
    Last Post: Dec 12, 2011, 3:46 AM
  2. ext:Desktop StartMenu title how to change it
    By xtremexploit in forum 1.x Help
    Replies: 2
    Last Post: Nov 29, 2011, 3:23 PM
  3. Replies: 1
    Last Post: Nov 24, 2011, 9:02 PM
  4. Combebox in Startmenu or a panel in Desktop
    By Kamal in forum 1.x Help
    Replies: 0
    Last Post: Oct 24, 2009, 2:03 PM
  5. [CLOSED] Desktop - Adding GridPanel to the StartMenu
    By danielg in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 07, 2009, 8:05 AM

Posting Permissions