Browse Source

Pull request #2615: REPORT-38688 设计器在双屏下拖动会有卡屏的现象

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

* commit 'fd630a18010a8001dda1c63e074a8b76c90672e3':
  REPORT-38688 设计器在双屏下拖动会有卡屏的现象
feature/big-screen
Hades 4 years ago
parent
commit
6a45f37580
  1. 3
      designer-base/src/main/java/com/fr/design/mainframe/DesignerFrame.java

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

@ -548,9 +548,8 @@ 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();
}

Loading…
Cancel
Save