Browse Source

REPORT-3163 合作开发9.0设计器=>交互验收=》修复一些bug

master
plough 7 years ago
parent
commit
6d226c2752
  1. 13
      designer_base/src/com/fr/design/mainframe/EastRegionContainerPane.java

13
designer_base/src/com/fr/design/mainframe/EastRegionContainerPane.java

@ -689,8 +689,10 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
popupDialog.setVisible(false); popupDialog.setVisible(false);
initContentPane(); initContentPane();
onResize(); onResize();
if (isEnabled()) {
propertyCard.show(rightPane, getName()); propertyCard.show(rightPane, getName());
setTabButtonSelected(); setTabButtonSelected();
}
refreshContainer(); refreshContainer();
} }
} }
@ -889,6 +891,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
private Cursor originCursor; private Cursor originCursor;
private Cursor southResizeCursor = Cursor.getPredefinedCursor(Cursor.S_RESIZE_CURSOR); private Cursor southResizeCursor = Cursor.getPredefinedCursor(Cursor.S_RESIZE_CURSOR);
private Point mouseDownCompCoords; private Point mouseDownCompCoords;
private JPanel contentWrapper;
private JComponent contentPane; private JComponent contentPane;
private PropertyItem propertyItem; private PropertyItem propertyItem;
@ -901,7 +904,7 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
popupToolPane.setParentDialog(this); popupToolPane.setParentDialog(this);
contentPane = propertyItem.getContentPane(); contentPane = propertyItem.getContentPane();
JPanel contentWrapper = new JPanel(new BorderLayout()); contentWrapper = new JPanel(new BorderLayout());
contentWrapper.add(popupToolPane, BorderLayout.NORTH); contentWrapper.add(popupToolPane, BorderLayout.NORTH);
contentWrapper.add(contentPane, BorderLayout.CENTER); contentWrapper.add(contentPane, BorderLayout.CENTER);
contentWrapper.setBorder(BorderFactory.createLineBorder(UIConstants.PROPERTY_DIALOG_BORDER)); contentWrapper.setBorder(BorderFactory.createLineBorder(UIConstants.PROPERTY_DIALOG_BORDER));
@ -933,12 +936,8 @@ public class EastRegionContainerPane extends UIEastResizableContainer {
public void replaceContentPane(PropertyItem propertyItem) { public void replaceContentPane(PropertyItem propertyItem) {
this.propertyItem = propertyItem; this.propertyItem = propertyItem;
JComponent contentPane = propertyItem.getContentPane(); JComponent contentPane = propertyItem.getContentPane();
container.remove(this.contentPane); contentWrapper.remove(this.contentPane);
container.add(this.contentPane = contentPane); contentWrapper.add(this.contentPane = contentPane, BorderLayout.CENTER);
// pack();
if (getSize().height < container.getPreferredSize().height) {
setSize(CONTENT_WIDTH, container.getPreferredSize().height);
}
refreshContainer(); refreshContainer();
} }

Loading…
Cancel
Save