fixed: text jumping issues on FF

This commit is contained in:
daboe01
2026-02-03 07:14:20 +01:00
parent ea69f8b9cc
commit 0fa2b62cc9
+6 -6
View File
@@ -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;
}