Required Information

Version(s) of Ext GWT
Ext GWT 3.0.6

Browser versions and OS
(and desktop environment, if applicable)
  • Internet Explorer 9, Windows 7
  • Firefox 24, Windows 7
  • Chrome 30.0.1599.47 beta-m, Windows 7
  • Especially IE 8 (Windows Server 2003)
Virtual Machine
«No matter»

Description
«When I set height of the TextButton explicitly i get the button with height 3 pixels more than I expect. It is not so bad in all the browsers, but IE8. In IE8 when button is disabled this extra 3 pixels are cut-off. Picture is added in the attachment»

Run mode
«Both»

Steps to reproduce the problem
  1. Create TextButton.
  2. Set size explicitly.
  3. set enabled to false.
  4. Open application in IE8
Expected result
«Button is completely visible and of the right size»

Actual result
«3 pixels on the bottom are cut-off. Size isn't right.»

Test case
Code:
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
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.HorizontalLayoutContainer;
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer;


public class TextButtonTest implements EntryPoint {
    @Override
    public void onModuleLoad() {


        HorizontalLayoutContainer containerWithButton = new HorizontalLayoutContainer();
        containerWithButton.setHeight(200);
        //containerWithButton.getElement().getStyle().setBackgroundColor("white");


        TextButton textButton = new TextButton("Button for Test");
        textButton.setEnabled(false);
        textButton.setHeight(100);
        textButton.setWidth(300);
        containerWithButton.add(textButton, new HorizontalLayoutContainer.HorizontalLayoutData(-1, -1, new Margins(2, 10, 2, 10)));


        VerticalLayoutContainer main = new VerticalLayoutContainer();
        main.add(containerWithButton, new VerticalLayoutContainer.VerticalLayoutData(1, -1));
        RootPanel.get().add(main);
    }
}
Helpful Information

Screenshot
bigButtonIsCutOff.jpg