Results 1 to 4 of 4

Thread: minButtonWidth not working in neptune theme

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTGWT-4833 in 4.0.1.
  1. #1
    Sencha Premium Member
    Join Date
    Sep 2010
    Posts
    51

    Default minButtonWidth not working in neptune theme

    Hi,
    i've noticed that setMinButtonWidth of toolbar class (com.sencha.gxt.widget.core.client.toolbar.ToolBar) doesn't work as expected - or even doesn't work at all - in neptune theme.
    I'm using GWT 2.7 and GXT 4.0.

    This is the example code to reproduce the issue (the only class in the project).
    Code:
    import com.google.gwt.core.client.EntryPoint;
    import com.sencha.gxt.widget.core.client.Dialog;
    import com.sencha.gxt.widget.core.client.Dialog.PredefinedButton;
    import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutPack;
    import com.sencha.gxt.widget.core.client.toolbar.LabelToolItem;
    
    public class ButtonTest implements EntryPoint {
    
        public void onModuleLoad() {
            Dialog dialog = new Dialog();
            dialog.setModal(true);
            dialog.setHeading("Dialog");
            dialog.add(new LabelToolItem("Button test"));
            dialog.setPixelSize(500, 300);
            dialog.setButtonAlign(BoxLayoutPack.CENTER);
            dialog.setMinButtonWidth(80);
            dialog.setPredefinedButtons(PredefinedButton.YES, PredefinedButton.NO);
            dialog.show();
        }
    }
    My gwt.xml is
    Code:
    <module rename-to='button_test'>
        <inherits name='com.google.gwt.user.User' />
        <inherits name='com.sencha.gxt.ui.GXT' />
        <inherits name="com.sencha.gxt.theme.neptune.Theme"/>
        <entry-point class='it.netstudio.buttontest.client.ButtonTest' />
        <source path='client' />
        <collapse-all-properties/>
    </module>
    The code works fine with the default theme.
    Seen with Chrome 48.

  2. #2
    Sencha Sr Product Manager
    Join Date
    Jan 2012
    Location
    Arlington, WA
    Posts
    1,165

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Sr Product Manager
    Join Date
    Jan 2012
    Location
    Arlington, WA
    Posts
    1,165

    Default

    You're right. Thanks for filing. Do you need some help finding a workaround?

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2010
    Posts
    51

    Default

    Thanks, setting the desired width on each button does the job

Similar Threads

  1. NOT WORKING : Gxt 3 Neptune theme Setup
    By anant.choubey in forum Sencha GXT 3.1
    Replies: 9
    Last Post: 23 Oct 2014, 11:34 PM
  2. Replies: 2
    Last Post: 30 Jun 2014, 6:51 AM
  3. Replies: 2
    Last Post: 25 Nov 2013, 11:03 AM
  4. Neptune Theme only working in Chrome?
    By DaveAlger in forum Ext: 4.x Beta
    Replies: 2
    Last Post: 12 Apr 2012, 10:08 AM
  5. Replies: 1
    Last Post: 12 Apr 2012, 9:58 AM

Posting Permissions

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