HanSolo / medusa

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

SIMPLE_SECTION broken in 11.3 #187

Closed rnayabed closed 4 years ago

rnayabed commented 4 years ago

When using 11.2, a SIMPLE_SECTION gauge looks like this

image

but when using 11.3, this happens :

image

There is a part of the gauge, which is black in colour, which is not expected

Code Snippet :

Gauge memoryGauge = new Gauge();
memoryGauge.setSkinType(Gauge.SkinType.SIMPLE_SECTION);
memoryGauge.setTitleColor(Color.WHITE);
memoryGauge.setTitle("MEM");
memoryGauge.setValue(0);
memoryGauge.setValueColor(Color.WHITE);
memoryGauge.setUnitColor(Color.WHITE);
memoryGauge.setSections(new Section(0,65,Color.GREEN), new Section(65.01,75,Color.ORANGE), new Section(75.01,100,Color.RED));
memoryGauge.setUnit("%");
memoryGauge.setCache(true);
memoryGauge.setCacheHint(CacheHint.SPEED);

Im using Liberica JDK 14, with prebundled JavaFX 14

HanSolo commented 4 years ago

Fixed with commit 72ebef3da55a660c1d068822fe6d87b6f2b2d667