aboutsummaryrefslogtreecommitdiff
path: root/dw/widget.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-10-02 11:15:45 +0200
committerSebastian Geerken <devnull@localhost>2014-10-02 11:15:45 +0200
commit44fb0ff9ca1dd52f071976e9a7a9a060695a2ba5 (patch)
treec4f82bede66d01981b179945072f83704fc4eb55 /dw/widget.cc
parent425137d1f67a3cdf102823bd06f994ecabf6a562 (diff)
The minimal width is (with adjust_min_width=YES) only considered for the final size, not for the available size.
Diffstat (limited to 'dw/widget.cc')
-rw-r--r--dw/widget.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/dw/widget.cc b/dw/widget.cc
index f740df00..ae8da192 100644
--- a/dw/widget.cc
+++ b/dw/widget.cc
@@ -588,9 +588,6 @@ int Widget::getAvailWidth (bool forceValue)
DBG_OBJ_MSG_END ();
}
- if (width != -1)
- width = misc::max (width, getMinWidth (NULL, forceValue));
-
DBG_OBJ_MSGF ("resize", 1, "=> %d", width);
DBG_OBJ_LEAVE ();
@@ -1463,9 +1460,6 @@ int Widget::getAvailWidthOfChild (Widget *child, bool forceValue)
}
}
- if (width != -1)
- width = misc::max (width, child->getMinWidth (NULL, forceValue));
-
DBG_OBJ_MSGF ("resize", 1, "=> %d", width);
DBG_OBJ_LEAVE ();