Merge pull request #3157 from daboe01/fixed-does-not-properly-transform-the-DOMElements-bounds-if-the-view-has-a-non-zero-origin

Fixed: [CPView addSubview:] was ignoring bounds origin for DOM positioning
This commit is contained in:
daboe01 authored and GitHub committed 2025-12-26 12:34:21 +01:00
commit 6b1e308dab
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]];