Skip to content

Commit

Permalink
Use physicalSize instead of logical in localClipBounds of the html sc…
Browse files Browse the repository at this point in the history
…ene.
  • Loading branch information
ditman committed Dec 23, 2022
1 parent 3910ddc commit 6222647
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/web_ui/lib/src/engine/html/scene.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ class PersistedScene extends PersistedContainerSurface {
@override
void recomputeTransformAndClip() {
// The scene clip is the size of the entire window.
final ui.Size screen = window.physicalSize / window.devicePixelRatio;
// Question: why is the above a logical size, rather than a physical size
// like everywhere else in the metrics?
final ui.Size screen = window.physicalSize;
localClipBounds = ui.Rect.fromLTRB(0, 0, screen.width, screen.height);
projectedClip = null;
}
Expand Down

0 comments on commit 6222647

Please sign in to comment.