Browse Source

Merge pull request #1110 in BA/design from ~ZHENG/design:release/9.0 to release/9.0

* commit '561b4dae82d5c33eab1f7d3f83b71034cfb60429':
  NumberDragBar labelString
master
superman 7 years ago
parent
commit
f9d5e91b4a
  1. 2
      designer_base/src/com/fr/design/gui/style/NumberDragBar.java

2
designer_base/src/com/fr/design/gui/style/NumberDragBar.java

@ -74,7 +74,7 @@ public class NumberDragBar extends JComponent {
g2.setColor(isEnabled() ? UIConstants.FONT_COLOR : UIManager.getColor("Label.disabledForeground"));
g2.drawString(String.valueOf(minValue), 2, 10);
g2.drawString(String.valueOf(maxValue), width - 20, 10);
g2.drawString(String.valueOf(maxValue), width - 10 * String.valueOf(maxValue).length(), 10);
if(minValue < 0) {
g2.drawString("0", width / 2 - 2, 10);
}

Loading…
Cancel
Save