HanSolo / medusa

A JavaFX library for Gauges
Apache License 2.0
688 stars 129 forks source link

Disappearing ticks #155

Closed claudio-rosati closed 5 years ago

claudio-rosati commented 5 years ago

If a GAUGE has a negative minimum value and a non-integer minor tick size it can happen minor ticks not being displayed.

In the following example:

gauge = GaugeBuilder.create()
  .skinType(SkinType.GAUGE)
  .title("Disappearing Ticks")
  .minValue(-100)
  .maxValue(100)
  .minorTickSpace(0.9)
  .majorTickSpace(10)
  .build();

and the result is:

screenshot 2018-10-23 at 12 36 05

after the patch:

screenshot 2018-10-23 at 12 37 07
HanSolo commented 5 years ago

Sorry for the late reply, implemented a solution that should work for you wit commit 689960233df62d24849297210b683598c090378d