Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6222647

Browse files
committed
Use physicalSize instead of logical in localClipBounds of the html scene.
1 parent 3910ddc commit 6222647

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/web_ui/lib/src/engine/html/scene.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ class PersistedScene extends PersistedContainerSurface {
4646
@override
4747
void recomputeTransformAndClip() {
4848
// The scene clip is the size of the entire window.
49-
final ui.Size screen = window.physicalSize / window.devicePixelRatio;
50-
// Question: why is the above a logical size, rather than a physical size
51-
// like everywhere else in the metrics?
49+
final ui.Size screen = window.physicalSize;
5250
localClipBounds = ui.Rect.fromLTRB(0, 0, screen.width, screen.height);
5351
projectedClip = null;
5452
}

0 commit comments

Comments
 (0)