소스 검색

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

tags/7.0.0.alpha2
Leif Åstrand 12 년 전
부모
커밋
447c23c9e1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      src/com/vaadin/terminal/gwt/client/ui/PanelConnector.java

+ 2
- 2
src/com/vaadin/terminal/gwt/client/ui/PanelConnector.java 파일 보기

@@ -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…
취소
저장