changeset 3776:6d1ecfa5fe7f

Fixed RT-29371 Small scrollbars in HTML controls are unusable
author lepopov
date Fri, 31 May 2013 15:04:12 +0400
parents 6fbcdced58f6
children 59839bab2fba
files webview/src/com/sun/javafx/webkit/theme/ScrollBarThemeImpl.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/webview/src/com/sun/javafx/webkit/theme/ScrollBarThemeImpl.java	Fri May 31 10:09:03 2013 +0100
+++ b/webview/src/com/sun/javafx/webkit/theme/ScrollBarThemeImpl.java	Fri May 31 15:04:12 2013 +0400
@@ -225,11 +225,11 @@
             incBtnX = trackX - (int)track.getLayoutBounds().getWidth();
         }
 
-        if (thumb.contains(thumbX, thumbY)) {
+        if (thumb.isVisible() && thumb.contains(thumbX, thumbY)) {
             log.finer("thumb");
             return THUMB_PART;
 
-        } else if (track.contains(trackX, trackY)) {
+        } else if (track.isVisible() && track.contains(trackX, trackY)) {
 
             if ((orientation == VERTICAL_SCROLLBAR && thumbPosition() >= trackY) ||
                 (orientation == HORIZONTAL_SCROLLBAR && thumbPosition() >= trackX))