From 342c81d5970e181566b96ea81be58cd1869b7632 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sat, 23 Mar 2024 00:16:21 +0100 Subject: Revert "Constraint width with min-width or max-width" This reverts commit 24bcd67df29a5418d05600b038a9283a00e555d2. Fixes: https://github.com/dillo-browser/dillo/issues/99 --- dw/widget.cc | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'dw/widget.cc') diff --git a/dw/widget.cc b/dw/widget.cc index 59cbdd9b..f4506b84 100644 --- a/dw/widget.cc +++ b/dw/widget.cc @@ -651,15 +651,22 @@ int Widget::getAvailWidth (bool forceValue) DBG_OBJ_ENTER ("resize", 0, "getAvailWidth", "%s", forceValue ? "true" : "false"); - int width = -1; - int scrollbarThickness = - layout->canvasHeightGreater ? layout->vScrollbarThickness : 0; - int viewportWidth = layout->viewportWidth - scrollbarThickness; + int width; if (parent == NULL && quasiParent == NULL) { DBG_OBJ_MSG ("resize", 1, "no parent, regarding viewport"); DBG_OBJ_MSG_START (); + // TODO Consider nested layouts (e. g.