diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-11-14 19:54:37 +0100 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-11-14 19:54:37 +0100 |
commit | c2629b5f08a874109ac0b22cb21ed0fc79bc6531 (patch) | |
tree | 6e6e4c5265a2b14a61d89b19410b2b9ecf9763e1 /dw/ui.cc | |
parent | d26ad8f97c37987fc919a3c156538b3671a0ef1d (diff) |
Only limit resizes on the top-level layout
Buttons also have their own Layout, which will try to resize every time
the window has changed. We are only interested in the top-level layout,
as is the one that has a problem on some pages.
Diffstat (limited to 'dw/ui.cc')
-rw-r--r-- | dw/ui.cc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2,6 +2,7 @@ * Dillo Widget * * Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org> + * Copyright 2024 Rodrigo Arias Mallo <rodarima@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -343,7 +344,8 @@ void ComplexButtonResource::init (Widget *widget) { childWidget = widget; - layout = new Layout (createPlatform ()); + /* FIXME: Buttons should not need a full Layout */ + layout = new Layout (createPlatform (), false); setLayout (layout); DBG_OBJ_ASSOC_CHILD (layout); layout->setWidget (widget); |