From 0fa2b62cc912ff8b204408d58bcdd22165562aec Mon Sep 17 00:00:00 2001 From: daboe01 Date: Tue, 3 Feb 2026 07:14:20 +0100 Subject: [PATCH] fixed: text jumping issues on FF --- AppKit/CPTextField.j | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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; }