diff options
Diffstat (limited to 'Libraries/LibWeb/Layout/LayoutCanvas.cpp')
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutCanvas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutCanvas.cpp b/Libraries/LibWeb/Layout/LayoutCanvas.cpp index 39b81f8454..deb316ea49 100644 --- a/Libraries/LibWeb/Layout/LayoutCanvas.cpp +++ b/Libraries/LibWeb/Layout/LayoutCanvas.cpp @@ -42,8 +42,8 @@ LayoutCanvas::~LayoutCanvas() void LayoutCanvas::layout() { - rect().set_width(node().preferred_width()); - rect().set_height(node().preferred_height()); + rect().set_width(node().requested_width()); + rect().set_height(node().requested_height()); LayoutReplaced::layout(); } |