Browse Source

Pull request #1722: REPORT-32318 frm横向和纵向滚动条图标点击问题

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

* commit '4fd85e2106905e9d90f65ee0cba1b30531bd7436':
  REPORT-32318 frm横向和纵向滚动条图标点击问题
feature/big-screen
pengda 5 years ago
parent
commit
b0811cfc2f
  1. 2
      designer-form/src/main/java/com/fr/design/mainframe/FormArea.java

2
designer-form/src/main/java/com/fr/design/mainframe/FormArea.java

@ -770,7 +770,7 @@ public class FormArea extends JComponent implements ScrollRulerComponent {
int scrollMax = orientation == 1 ? verticalMax : horicalMax; int scrollMax = orientation == 1 ? verticalMax : horicalMax;
//防止滚动条到达低端还可以继续点击移动(滚动条最大范围不变时,newValue要在范围之内) //防止滚动条到达低端还可以继续点击移动(滚动条最大范围不变时,newValue要在范围之内)
if (oldmax == scrollMax + visi && newValue > scrollMax) { if (oldmax == scrollMax + visi && newValue > scrollMax) {
return new Point(oldValue, oldmax); return new Point(scrollMax, oldmax);
} }
return new Point(newValue, max); return new Point(newValue, max);
} }

Loading…
Cancel
Save