Merge pull request #2171 from Dogild/CPTextField-Platform

Fixed: Checking if a CPTextField is usable in a CPPlatformWindow
This commit is contained in:
Antoine Mercadal committed 2014-08-12 12:11:50 -07:00
commit d95e133792
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];