From e2f8d77f6739616ee5889a489a85f17acd11a7a2 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Mon, 19 Nov 2012 11:54:05 +0000 Subject: [PATCH] Fixed: white line when scrolling between tokens. Without this fix there'd be a white line visible on top of the token field when scrolling between multiple lines of tokens in a short field. In addition the scroll view was 1 px short which made it possible to scroll tokens up and down by 1 px even when there was only a single row of tokens which should fit in the field. This fix expands the clip rect upwards by 1 px to bring it all the way up to the first row of bezel pixels, ensuring sure a single row of tokens fits fully in a 1 row token field. --- AppKit/Themes/Aristo/ThemeDescriptors.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppKit/Themes/Aristo/ThemeDescriptors.j b/AppKit/Themes/Aristo/ThemeDescriptors.j index ab6038066..5c77deb67 100755 --- a/AppKit/Themes/Aristo/ThemeDescriptors.j +++ b/AppKit/Themes/Aristo/ThemeDescriptors.j @@ -1028,7 +1028,7 @@ var themedButtonValues = nil, overrides = [ [@"bezel-inset", CGInsetMakeZero()], - [@"editor-inset", CGInsetMake(2.0, 0.0, 0.0, 0.0)], + [@"editor-inset", CGInsetMake(3.0, 0.0, 0.0, 0.0)], // Non-bezeled token field with tokens [@"content-inset", CGInsetMake(6.0, 8.0, 4.0, 8.0)], @@ -1037,7 +1037,7 @@ var themedButtonValues = nil, [@"content-inset", CGInsetMake(7.0, 8.0, 6.0, 8.0), CPTextFieldStatePlaceholder], // Bezeled token field with tokens - [@"content-inset", CGInsetMake(6.0, 5.0, 4.0, 5.0), CPThemeStateBezeled], + [@"content-inset", CGInsetMake(5.0, 5.0, 4.0, 5.0), CPThemeStateBezeled], // Bezeled token field with no tokens [@"content-inset", CGInsetMake(8.0, 8.0, 7.0, 8.0), CPThemeStateBezeled | CPTextFieldStatePlaceholder]