1. #1
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    0
    fother is on a distinguished road

      0  

    Default [CLOSED] ToggleToolItem - setWidth - isse

    [CLOSED] ToggleToolItem - setWidth - isse


    isn't possible set the width

    code example
    Code:
    	public void onModuleLoad() {
    
    		ToggleToolItem one = new ToggleToolItem("my text");
    		one.setWidth("500px");
    
    		ToolBar toolbar = new ToolBar();
    		toolbar.add(one);
    
    		ContentPanel panel = new ContentPanel();
    		panel.setSize(600, 200);
    		panel.setTopComponent(toolbar);
    
    		RootPanel.get().add(panel);
    	}

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,753
    Vote Rating
    113
    sven is just really nice sven is just really nice sven is just really nice sven is just really nice sven is just really nice

      0  

    Default


    This is not a bug. This a currently by design.

  3. #3
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    0
    fother is on a distinguished road

      0  

    Default


    wow...

    you can correct me?

  4. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,753
    Vote Rating
    113
    sven is just really nice sven is just really nice sven is just really nice sven is just really nice sven is just really nice

      0  

    Default


    ToggleToolItem is a Component. Component doesnt support sizes.

  5. #5
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,753
    Vote Rating
    113
    sven is just really nice sven is just really nice sven is just really nice sven is just really nice sven is just really nice

      0  

    Default


    This was changed in 2.0 code already. Buttons and Toolbars were completly refactored.