Browse Source

Pull request #2346: REPORT-39911 海外版设计器右侧属性栏默认宽度调整、不可拖拽 && REPORT-39340 【回归】修复设计器闪退提示存在乱码

Merge in DESIGN/design from ~HADES/design:release/10.0 to release/10.0

* commit '4e93f6d235d8f02d265252b47b8164329c311d56':
  REPORT-39911 海外版设计器右侧属性栏默认宽度调整、不可拖拽 REPORT-39340 【回归】修复设计器闪退提示存在乱码
feature/big-screen
Hades 4 years ago
parent
commit
a9ab4233bb
  1. 2
      designer-base/src/main/java/com/fr/design/dialog/ErrorDialog.java
  2. 10
      designer-base/src/main/java/com/fr/design/gui/icontainer/UIEastResizableContainer.java

2
designer-base/src/main/java/com/fr/design/dialog/ErrorDialog.java

@ -35,7 +35,7 @@ public abstract class ErrorDialog extends JDialog implements ActionListener {
JPanel messagePane = FRGUIPaneFactory.createVerticalFlowLayout_S_Pane(true);
UILabel boldFontLabel = new UILabel(message);
UILabel label = new UILabel(Toolkit.i18nText("Fine-Design_Send_Report_To_Us"));
Font font = FRFont.getInstance("Dialog", Font.BOLD, 20);
Font font = FRFont.getInstance(label.getFont().getFontName(), Font.BOLD, 20);
boldFontLabel.setFont(font);
messagePane.add(boldFontLabel);
messagePane.add(label);

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

@ -19,7 +19,7 @@ import java.awt.event.MouseMotionListener;
public class UIEastResizableContainer extends JPanel {
private static final long serialVersionUID = 1854340560790476907L;
public static final int MAX_CONTAINER_WIDTH = 500;
public static final int MAX_CONTAINER_WIDTH = 340;
public static final int MIN_CONTAINER_WIDTH = 286;
private int containerWidth = 240;
@ -266,13 +266,7 @@ public class UIEastResizableContainer extends JPanel {
@Override
public void mouseDragged(MouseEvent e) {
containerWidth = UIEastResizableContainer.this.getWidth() + (UIEastResizableContainer.this.getLocationOnScreen().x - e.getXOnScreen());
containerWidth = Math.min(containerWidth, MAX_CONTAINER_WIDTH);
containerWidth = Math.max(containerWidth, MIN_CONTAINER_WIDTH);
refreshContainer();
if ( DesignModeContext.isAuthorityEditing()) {
DesignerContext.getDesignerFrame().doResize();
}
// do noting
}
});
addMouseListener(new MouseAdapter() {

Loading…
Cancel
Save