Browse Source

fix

zheng-1641779399395
Lanlan 3 years ago
parent
commit
4aec5671a5
  1. 13
      designer-base/src/main/java/com/fr/design/gui/icontainer/UIEastResizableContainer.java

13
designer-base/src/main/java/com/fr/design/gui/icontainer/UIEastResizableContainer.java

@ -242,7 +242,10 @@ public class UIEastResizableContainer extends JPanel {
* 伸缩右子面板时触发此方法 * 伸缩右子面板时触发此方法
*/ */
public void onResize() { public void onResize() {
// do nothing here refreshContainer();
if (DesignModeContext.isAuthorityEditing()) {
DesignerContext.getDesignerFrame().doResize();
}
} }
public void showContainer() { public void showContainer() {
@ -251,10 +254,6 @@ public class UIEastResizableContainer extends JPanel {
} }
containerWidth = preferredWidth; containerWidth = preferredWidth;
onResize(); onResize();
refreshContainer();
if (DesignModeContext.isAuthorityEditing()) {
DesignerContext.getDesignerFrame().doResize();
}
} }
public void hideContainer() { public void hideContainer() {
@ -264,10 +263,6 @@ public class UIEastResizableContainer extends JPanel {
setPreferredWidth(containerWidth); setPreferredWidth(containerWidth);
containerWidth = leftPaneWidth; containerWidth = leftPaneWidth;
onResize(); onResize();
refreshContainer();
if (DesignModeContext.isAuthorityEditing()) {
DesignerContext.getDesignerFrame().doResize();
}
} }
private class TopToolPane extends JPanel { private class TopToolPane extends JPanel {

Loading…
Cancel
Save