Compare commits

...

3 Commits

Author SHA1 Message Date
leewyatt de4c64146e . 2021-11-15 16:07:58 +09:00
leewyatt 715d03fcfd . 2021-11-15 14:19:28 +09:00
leewyatt 3a9ec5c33f fix lineHeight bug 2021-11-15 13:41:56 +09:00
4 changed files with 5 additions and 2 deletions

View File

@ -24,6 +24,7 @@ Maven dependency
<dependency>
<groupId>com.github.leewyatt</groupId>
<artifactId>rxcontrols</artifactId>
<!-- 11.x.y -->
<version>11.0.0-alpha</version>
</dependency>
</dependencies>

View File

@ -12,7 +12,7 @@
<groupId>com.github.leewyatt</groupId>
<artifactId>rxcontrols</artifactId>
<version>11.0.0-alpha</version>
<version>11.0.2</version>
<packaging>jar</packaging>
<dependencies>

View File

@ -216,7 +216,7 @@ public class RXLrcView extends Control {
public final DoubleProperty lineHeightProperty() {
if (lineHeight == null) {
lineHeight = new StyleableDoubleProperty() {
lineHeight = new StyleableDoubleProperty(DEFAULT_LINE_HEIGHT) {
@Override
public Object getBean() {
return this;

View File

@ -156,6 +156,8 @@ public class RXLrcViewSkin extends SkinBase<RXLrcView> {
control.addEventHandler(MouseEvent.MOUSE_DRAGGED, mouseDraggedHandler);
//鼠标释放
control.addEventHandler(MouseEvent.MOUSE_RELEASED, mouseReleasedHandler);
//行高改变时
control.lineHeightProperty().addListener(invalidationListener);
}
private final EventHandler<MouseEvent> mousePressedHandler = event -> startDragY = event.getY() - lrcPane.getLayoutY();