|
|
|
@ -188,6 +188,11 @@ public class XBorderStyleWidgetCreator extends XWidgetCreator{
|
|
|
|
|
XWTitleLayout parent = (XWTitleLayout) this.getParent(); |
|
|
|
|
if (parent.getComponentCount() > 1) { |
|
|
|
|
parent.remove(parent.getTitleCreator()); |
|
|
|
|
WTitleLayout layout = parent.toData(); |
|
|
|
|
Rectangle rec = new Rectangle(layout.getBodyBoundsWidget().getBounds()); |
|
|
|
|
//删除标题组件后,容器高度为body高度+标题组件的高度
|
|
|
|
|
rec.height += WTitleLayout.TITLE_HEIGHT; |
|
|
|
|
layout.updateChildBounds(rec); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|