diff --git a/AppKit/CPTextField.j b/AppKit/CPTextField.j index db980fe43..ba960f582 100644 --- a/AppKit/CPTextField.j +++ b/AppKit/CPTextField.j @@ -768,25 +768,25 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder"); left = CGRectGetMinX(contentRect); // If the browser has a built in left padding, compensate for it. We need the input text to be exactly on top of the original text. - if (CPFeatureIsCompatible(CPInput1PxLeftPadding)) - left -= 1; + //if (CPFeatureIsCompatible(CPInput1PxLeftPadding)) + // left -= 1; switch (verticalAlign) { case CPTopVerticalTextAlignment: - var topPoint = CGRectGetMinY(contentRect) + "px"; + var topPoint = CEIL(CGRectGetMinY(contentRect)) + "px"; break; case CPCenterVerticalTextAlignment: - var topPoint = (CGRectGetMidY(contentRect) - (lineHeight / 2)) + "px"; + var topPoint = CEIL((CGRectGetMidY(contentRect) - (lineHeight / 2))) + "px"; break; case CPBottomVerticalTextAlignment: - var topPoint = (CGRectGetMaxY(contentRect) - lineHeight) + "px"; + var topPoint = CEIL((CGRectGetMaxY(contentRect) - lineHeight)) + "px"; break; default: - var topPoint = CGRectGetMinY(contentRect) + "px"; + var topPoint = CEIL(CGRectGetMinY(contentRect)) + "px"; break; }