Browse Source

Measure inner height as it isn't affected by margins (#8313)

tags/7.0.0.alpha2
Leif Åstrand 12 years ago
parent
commit
447c23c9e1
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/com/vaadin/terminal/gwt/client/ui/PanelConnector.java

+ 2
- 2
src/com/vaadin/terminal/gwt/client/ui/PanelConnector.java View File

@@ -192,8 +192,8 @@ public class PanelConnector extends AbstractComponentContainerConnector
}

LayoutManager layoutManager = getLayoutManager();
int top = layoutManager.getOuterHeight(panel.captionNode);
int bottom = layoutManager.getOuterHeight(panel.bottomDecoration);
int top = layoutManager.getInnerHeight(panel.captionNode);
int bottom = layoutManager.getInnerHeight(panel.bottomDecoration);

Style style = panel.getElement().getStyle();
panel.captionNode.getStyle().setMarginTop(-top, Unit.PX);

Loading…
Cancel
Save