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

Commit 7ca1816

Browse files
author
a-wallen
committed
Revisions
1 parent 94653aa commit 7ca1816

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/ui/platform_dispatcher.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ class PlatformDispatcher {
226226
}
227227
_viewConfigurations[id] = previousConfiguration.copyWith(
228228
view: _views[id],
229+
window: _views[id],
229230
devicePixelRatio: devicePixelRatio,
230231
geometry: Rect.fromLTWH(0.0, 0.0, width, height),
231232
viewPadding: WindowPadding._(
@@ -1349,7 +1350,7 @@ class ViewConfiguration {
13491350
final double devicePixelRatio;
13501351

13511352
/// The geometry requested for the view on the screen or within its parent
1352-
/// view, in logical pixels.
1353+
/// window, in logical pixels.
13531354
final Rect geometry;
13541355

13551356
/// Whether or not the view is currently visible on the screen.

lib/web_ui/lib/platform_dispatcher.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ class ViewConfiguration {
208208

209209
ViewConfiguration copyWith({
210210
FlutterView? view,
211+
FlutterView? window,
211212
double? devicePixelRatio,
212213
Rect? geometry,
213214
bool? visible,
@@ -220,6 +221,7 @@ class ViewConfiguration {
220221
}) {
221222
return ViewConfiguration(
222223
view: view ?? this.view,
224+
window: window ?? this.window,
223225
devicePixelRatio: devicePixelRatio ?? this.devicePixelRatio,
224226
geometry: geometry ?? this.geometry,
225227
visible: visible ?? this.visible,

0 commit comments

Comments
 (0)