HanSolo / tilesfx

A JavaFX library containing tiles that can be used for dashboards.
Apache License 2.0
1.43k stars 201 forks source link

Tile with SkinType.PERCENTAGE don't hides maxValue #106

Closed ltorok closed 4 years ago

ltorok commented 4 years ago

Hi. Is this bug?

I have this code: Tile percentageTile = TileBuilder.create() .skinType(SkinType.PERCENTAGE) .prefSize(TILE_WIDTH, TILE_HEIGHT) .title("Title") .unit(Helper.PERCENTAGE) .description("Description") .maxValue(100) .decimals(0) .titleAlignment(TextAlignment.CENTER) .descriptionAlignment(Pos.CENTER) .maxValueVisible(false) .valueVisible(false) .unit("") .build();

Note that maxValueVisible is set to false, but I get this: screenshot

HanSolo commented 4 years ago

Fixed with commit aaefb790752a64b05a1037333acac979d7b05893

ltorok commented 4 years ago

Thanks. It is ok now.