< prev index next >
modules/javafx.controls/src/main/java/javafx/scene/control/skin/SliderSkin.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 113,122 ****
--- 113,127 ----
behavior = new SliderBehavior(control);
// control.setInputMap(behavior.getInputMap());
initialize();
control.requestLayout();
+
+ if (control.getTooltip() != null) {
+ control.getTooltip().setConsumeAutoHidingEvents(false);
+ }
+
registerChangeListener(control.minProperty(), e -> {
if (showTickMarks && tickLine != null) {
tickLine.setLowerBound(control.getMin());
}
getSkinnable().requestLayout();
< prev index next >