From a04f1045bcf2336405535a028b9f6fbca98dd9df Mon Sep 17 00:00:00 2001 From: Alexandre Wilhelm Date: Tue, 12 Aug 2014 11:27:25 -0700 Subject: [PATCH] Fixed: Checking if a CPTextField is usable in a CPPlatformWindow Previously, when a CPTextField was in a CPPlatformWindow, the checking of if the CPTextField was usable or not (depending on its position) in a CPPlatformWindow didn't take in account the content-inset of the CPTextField. Now it does. --- AppKit/CPTextField.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPTextField.j b/AppKit/CPTextField.j index 2b5465c73..5ff471141 100644 --- a/AppKit/CPTextField.j +++ b/AppKit/CPTextField.j @@ -1847,7 +1847,7 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder"); if (!wind) return NO; - var frame = [self convertRectToBase:[self bounds]], + var frame = [self convertRectToBase:[self contentRectForBounds:[self bounds]]], usableRect = [[wind platformWindow] usableContentFrame]; frame.origin = [wind convertBaseToGlobal:frame.origin];