Success! Looks like we've fixed this one. According to our records the fix was applied for EXTGWT-1696 in a recent build.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2010
    Posts
    128
    Vote Rating
    2
    audra is on a distinguished road

      0  

    Default StretchMax longest button cut off...

    StretchMax longest button cut off...


    I'm pretty sure this was also happening before stretchmax broke in beta4.

    Structure:
    Hbox with a VBox of buttons in it. The Vbox sizes itself too small to handle the longest button.

    Code:
    package com.citrix.client;
    
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.core.client.GWT;
    import com.google.gwt.resources.client.ClientBundle;
    import com.google.gwt.resources.client.CssResource;
    import com.google.gwt.user.client.ui.IsWidget;
    import com.google.gwt.user.client.ui.RootPanel;
    import com.google.gwt.user.client.ui.Widget;
    import com.sencha.gxt.core.client.util.Margins;
    import com.sencha.gxt.widget.core.client.button.TextButton;
    import com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer;
    import com.sencha.gxt.widget.core.client.container.VBoxLayoutContainer;
    import com.sencha.gxt.widget.core.client.container.Viewport;
    import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData;
    import com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer.HBoxLayoutAlign;
    import com.sencha.gxt.widget.core.client.container.VBoxLayoutContainer.VBoxLayoutAlign;
    
    
    
    
    /**
     * Entry point classes define <code>onModuleLoad()</code>.
     */
    public class Beta implements IsWidget, EntryPoint {
        /**
         * The message displayed to the user when the server cannot be reached or
         * returns an error.
         */
        /**
         * Create a remote service proxy to talk to the server-side Greeting service.
         */
        
        /**
         * This is the entry point method.
         */
        private BetaStyle betaStyle;
        private BetaResources betaResources;
        public interface BetaStyle extends CssResource {     
         
            String button();
            
            String buttonChange();
          }
        public interface BetaResources extends ClientBundle {
            @Source("Beta.css")
            BetaStyle css();
        }
        public void onModuleLoad() {
            RootPanel.get().add(asWidget());
        }
    
    
        @Override
        public Widget asWidget() {
            betaResources = GWT.create(BetaResources.class);
            betaResources.css().ensureInjected();
            betaStyle = betaResources.css();
            VBoxLayoutContainer globalContainer = new VBoxLayoutContainer(VBoxLayoutAlign.STRETCH);
            HBoxLayoutContainer outerContainter = new HBoxLayoutContainer(HBoxLayoutAlign.STRETCH);
            VBoxLayoutContainer buttonContainer = new VBoxLayoutContainer(VBoxLayoutAlign.STRETCHMAX);
    
    
            TextButton button1 = new TextButton("button1");
            TextButton button2 = new TextButton("button2");
            final TextButton button3 = new TextButton("I am a Button");
            
            BoxLayoutData buttonLayoutData = new BoxLayoutData(new Margins(5,50,5,50));
            
            buttonContainer.add(button1, buttonLayoutData);
            buttonContainer.add(button2, buttonLayoutData);
            buttonContainer.add(button3, buttonLayoutData);
            buttonContainer.forceLayout();
            BoxLayoutData pageData = new BoxLayoutData(new Margins(0,0,0,0));
            pageData.setFlex(1);
            
            outerContainter.add(buttonContainer);
            globalContainer.setSize("50%", "50%");
            globalContainer.add(outerContainter, pageData);
            Viewport viewport = new Viewport();
            viewport.add(globalContainer, pageData);
            return viewport;
        }
        
    }

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Vote Rating
    130
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Moved to the correct location

  3. #3
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    What browser are you noticing this issue in? I'm noticing a similar but not identical issue when running your test case, so I'll file a bug. I'll update this thread with any progress we make, but please provide some information on your test browser so we can be sure we've targeted the issue there.

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

      0  

    Default


    There was a bug with buttons where if the text was longer than space available the button corners were cut off. This was recently fixed in SVN.

    I tested your code in Firefox, Chrome, IE 6,7,8,9 and the buttons are rendered correctly.

  5. #5
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    This bug has been fixed in the Ext GWT 3.0 Release Candidate. Please upgrade your copy of Ext GWT and try your test case again. While we're confident that we've addressed this issue, please reply if you notice any continued problems after upgrading. Again, thanks for taking the time to report this bug.

  6. #6
    Sencha Premium Member
    Join Date
    Oct 2010
    Posts
    128
    Vote Rating
    2
    audra is on a distinguished road

      0  

    Default


    gxt rc is still cutting off the button. code above is the same.

    bug.PNG

  7. #7
    Sencha Premium Member
    Join Date
    Oct 2010
    Posts
    128
    Vote Rating
    2
    audra is on a distinguished road

      0  

    Default


    occurs in firefox and ie8.

  8. #8
    Sencha Premium Member
    Join Date
    Oct 2010
    Posts
    128
    Vote Rating
    2
    audra is on a distinguished road

      0  

    Default


    any updates on this? It's still occurring in the rc

  9. #9
    Sencha Premium Member
    Join Date
    Oct 2010
    Posts
    128
    Vote Rating
    2
    audra is on a distinguished road

      0  

    Default


    still broken in rc2...

  10. #10
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    I've been able to reproduce the issue, so I've reopened the ticket and will have the team take a look. Thanks for reverifying and pointing out the regression.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar