xiaoxia 8 years ago
parent
commit
c3cb42a58a
  1. 6
      designer_base/src/com/fr/design/gui/icontainer/UIResizableContainer.java

6
designer_base/src/com/fr/design/gui/icontainer/UIResizableContainer.java

@ -127,9 +127,7 @@ public class UIResizableContainer extends JPanel {
} }
public int getParameterPaneHeight() { public int getParameterPaneHeight() {
if(parameterPane.getHeight() == 0) {
return 30;
}
return paraHeight; return paraHeight;
} }
@ -217,6 +215,7 @@ public class UIResizableContainer extends JPanel {
} }
parameterPane.setBounds(20,0,230,getParameterPaneHeight()); parameterPane.setBounds(20,0,230,getParameterPaneHeight());
upPane.setBounds(toolPaneHeight, getParameterPaneHeight(), containerWidth - toolPaneHeight, toolPaneY); upPane.setBounds(toolPaneHeight, getParameterPaneHeight(), containerWidth - toolPaneHeight, toolPaneY);
System.out.print(getParameterPaneHeight() + "fsdfsdfsd");
horizontToolPane.setBounds(toolPaneHeight, toolPaneY + getParameterPaneHeight(), containerWidth - toolPaneHeight, toolPaneHeight); horizontToolPane.setBounds(toolPaneHeight, toolPaneY + getParameterPaneHeight(), containerWidth - toolPaneHeight, toolPaneHeight);
downPane.setBounds(toolPaneHeight, toolPaneY + toolPaneHeight + getParameterPaneHeight(), containerWidth - toolPaneHeight, parent.getHeight() - toolPaneY - toolPaneHeight - getParameterPaneHeight()); downPane.setBounds(toolPaneHeight, toolPaneY + toolPaneHeight + getParameterPaneHeight(), containerWidth - toolPaneHeight, parent.getHeight() - toolPaneY - toolPaneHeight - getParameterPaneHeight());
verticalToolPane.setBounds(0, 0, toolPaneHeight, getHeight()); verticalToolPane.setBounds(0, 0, toolPaneHeight, getHeight());
@ -273,6 +272,7 @@ public class UIResizableContainer extends JPanel {
public void removeParameterPane() { public void removeParameterPane() {
remove(this.parameterPane); remove(this.parameterPane);
setParameterHeight(0);
refreshContainer(); refreshContainer();
} }

Loading…
Cancel
Save