JFXtras / jfxtras

A supporting library for JavaFX, containing helper classes, extended layouts, controls and other interesting widgets.
http://jfxtras.org
Other
599 stars 123 forks source link

Change height of hour in agenda #85

Closed BjornWater closed 7 years ago

BjornWater commented 7 years ago

Is there a possibility to change the height of an hour in the agenda controls?

tbee commented 7 years ago

The minimal height of an hour relates to the text size: 2* text height + 10px for margin https://github.com/JFXtras/jfxtras/blob/8.0/jfxtras-agenda/src/main/java/jfxtras/internal/scene/control/skin/agenda/base24hour/AgendaSkinTimeScale24HourAbstract.java#L589

But if there is more room, than all the available room is distributed equally. So yes it is possible, but probably not how you thought it would go. The fact is that the hour size is roughly the (total size - header) / 24.

The text size is determined from CSS. https://github.com/JFXtras/jfxtras/blob/8.0/jfxtras-agenda/src/main/java/jfxtras/internal/scene/control/skin/agenda/base24hour/LayoutHelp.java#L82

BjornWater commented 7 years ago

What css property should it be then. Can only find that the height is determined by the bounds in parents. But you cannot change that height in css

tbee commented 7 years ago

You cannot set the hour height, it is the available height divided by 24. But with a minimum.

tbee commented 7 years ago

Closed due to inactivity