mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 23:07:15 -06:00
ScrollPane: fixed UI artifact at bottom right corner of scroll pane if both scroll bars are visible, which was caused by Component.innerFocusWidth > 0 (issue #35)
This commit is contained in:
@@ -78,6 +78,8 @@ public class FlatBorder
|
|||||||
float arc = isCellEditor ? 0 : getArc( c );
|
float arc = isCellEditor ? 0 : getArc( c );
|
||||||
|
|
||||||
if( isFocused( c ) ) {
|
if( isFocused( c ) ) {
|
||||||
|
float innerFocusWidth = !(c instanceof JScrollPane) ? this.innerFocusWidth : 0;
|
||||||
|
|
||||||
g2.setColor( getFocusColor( c ) );
|
g2.setColor( getFocusColor( c ) );
|
||||||
FlatUIUtils.paintComponentOuterBorder( g2, x, y, width, height, focusWidth,
|
FlatUIUtils.paintComponentOuterBorder( g2, x, y, width, height, focusWidth,
|
||||||
getLineWidth() + scale( innerFocusWidth ), arc );
|
getLineWidth() + scale( innerFocusWidth ), arc );
|
||||||
|
|||||||
Reference in New Issue
Block a user