aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/layout/layout_task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/main/layout/layout_task.rs')
-rw-r--r--src/components/main/layout/layout_task.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/main/layout/layout_task.rs b/src/components/main/layout/layout_task.rs
index b5aa76a1511..fdbe44fbfeb 100644
--- a/src/components/main/layout/layout_task.rs
+++ b/src/components/main/layout/layout_task.rs
@@ -581,8 +581,8 @@ impl LayoutTask {
_ => false
};
- let current_screen_size = Size2D(Au::from_px(data.window_size.width as int),
- Au::from_px(data.window_size.height as int));
+ let current_screen_size = Size2D(Au::from_page_px(data.window_size.width),
+ Au::from_page_px(data.window_size.height));
if self.screen_size != current_screen_size {
all_style_damage = true
}