Browse Source

Pull request #2730: REPORT-38688 设计器在双屏下拖动会有卡屏的现象 同步到final

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

* commit 'ec637d5ba2846e62d3cd59db5dd90b9ccf3e2206':
  REPORT-38688 设计器在双屏下拖动会有卡屏的现象
  REPORT-38688 设计器在双屏下拖动会有卡屏的现象
final/10.0
Kara 4 years ago
parent
commit
587386f883
  1. 4
      designer-base/src/main/java/com/fr/design/mainframe/DesignerFrame.java

4
designer-base/src/main/java/com/fr/design/mainframe/DesignerFrame.java

@ -548,10 +548,10 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
contentHeight = layeredPane.getHeight();
contentWidth = layeredPane.getWidth();
layeredPane.remove(basePane);
// 这个地方remove和add都是一个对象 完全没有必要remove再add 改变了窗口大小重新设置下 然后有repaint即可
basePane.setBounds(0, 0, contentWidth, contentHeight);
layeredPane.add(basePane);
layeredPane.repaint();
layeredPane.revalidate();
}
/**

Loading…
Cancel
Save