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.
This commit is contained in:
Alexandre Wilhelm committed 2014-08-12 11:27:25 -07:00
1 parent 18a7a9fdce
commit a04f1045bc
1 file changed
+1 -1
+1 -1
View File
@@ -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];