Browse Source

REPORT-81222【运营产品化二期】自定义排序先点击首个再点击最后一个,上下箭头置灰显示有问题

按钮交互逻bug
feature/x
Link.Zhao 2 years ago
parent
commit
1023ff0713
  1. 4
      designer-base/src/main/java/com/fr/design/actions/help/alphafine/component/CustomSortPane.java

4
designer-base/src/main/java/com/fr/design/actions/help/alphafine/component/CustomSortPane.java

@ -153,7 +153,11 @@ public class CustomSortPane extends JPanel {
if (order == 0) { if (order == 0) {
top.setEnabled(false); top.setEnabled(false);
up.setEnabled(false); up.setEnabled(false);
down.setEnabled(true);
bottom.setEnabled(true);
} else if (order == sortItemPane.getComponentCount() - 1) { } else if (order == sortItemPane.getComponentCount() - 1) {
up.setEnabled(true);
top.setEnabled(true);
down.setEnabled(false); down.setEnabled(false);
bottom.setEnabled(false); bottom.setEnabled(false);
} else { } else {

Loading…
Cancel
Save