Fixed: [CPView addSubview:] was ignoring bounds origin for DOM positioning

This commit is contained in:
daboe01 committed 2025-12-07 11:21:11 +01:00
1 parent e02107102c
commit c7f3dd5b0f
1 file changed
+5
+5
View File
@@ -662,6 +662,11 @@ var CPViewHighDPIDrawingEnabled = YES;
#endif
}
#if PLATFORM(DOM)
var origin = aSubview._frame.origin;
CPDOMDisplayServerSetStyleLeftTop(aSubview._DOMElement, _boundsTransform, origin.x, origin.y);
#endif
[aSubview setNextResponder:self];
[aSubview _scaleSizeUnitSquareToSize:[self _hierarchyScaleSize]];