1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    8
    Vote Rating
    0
    stephen_mcleod is on a distinguished road

      0  

    Default [FIXED] Menu item text too long for menu

    [FIXED] Menu item text too long for menu


    If I create a menu with a menu item which has a long description, then the menu item description overflows the edge of the menu. eg

    Code:
    package com.radworkz.test.gxt;
    
    import com.extjs.gxt.ui.client.widget.menu.Menu;
    import com.extjs.gxt.ui.client.widget.menu.TextMenuItem;
    import com.extjs.gxt.ui.client.widget.toolbar.TextToolItem;
    import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.user.client.ui.RootPanel;
    
    public class TestGxt implements EntryPoint {
    
        /**
         * @see com.google.gwt.core.client.EntryPoint#onModuleLoad()
         */
        public final void onModuleLoad() {
            
            ToolBar toolbar = new ToolBar();
    
            TextToolItem toolItem = new TextToolItem("Menu 1");
            toolbar.add(toolItem);
    
            Menu menu = new Menu();
            menu.add(new TextMenuItem("Item 1"));
            menu.add(new TextMenuItem("Overly Long Text For Item 2"));
            toolItem.setMenu(menu);
    
            RootPanel.get().add(toolbar);
        }
        
    }
    I tried using menu.setAutoWidth(true), however this did not seem to have any effect (should it?).

    I've attached a screenshot of the result of running the above code.

    Using GXT 1.0-Beta-2, GWT 1.5-M2, on Ubuntu 8.04.
    Attached Images

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    The fix is in SVN.

  3. #3
    Ext User
    Join Date
    Apr 2008
    Posts
    8
    Vote Rating
    0
    stephen_mcleod is on a distinguished road

      0  

    Default


    Many thanks, works fine now using revision 103 from SVN.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi