1

I want to increase the default size of HeaderButton Widget in MGWt.I tried this:

headerBackButton.setHeight(String.valueOf(50)+"px");
    headerBackButton.setWidth(String.valueOf(50)+"px");
    headerBackButton.getElement().getStyle().setWidth(50, Unit.PX);
    headerBackButton.getElement().getStyle().setHeight(50, Unit.PX);

1 Answers1

1

I have just tried in the mgwt.showcase (class UIViewImpl) and using the headerBackButton.setWidth("75px"); works perfect (just after headerBackButton = new HeaderButton(); ).

Have you checked you do not have other elements or other css´rules that block the resize??

For example, in the mgwt showcase after 80px the button does not get bigger because the p child element has the rule max-height

apanizo
  • 628
  • 5
  • 11