Mercurial > projects > mde
diff mde/gui/widget/Floating.d @ 103:42e241e7be3e
ContentList content type; getting content items/lists from Options generically via content.Items, and a new addContent widget function. Several improvements to generic handling of content. New button-with-text widget.
Some tidy-up.
Some name changes, to increase uniformity.
Bug-fix: floating widgets of fixed size could previously be made larger than intended from config dimdata.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Tue, 25 Nov 2008 18:01:44 +0000 |
parents | 5de5810e3516 |
children | 1655693702fc |
line wrap: on
line diff
--- a/mde/gui/widget/Floating.d Sat Nov 22 20:59:36 2008 +0000 +++ b/mde/gui/widget/Floating.d Tue Nov 25 18:01:44 2008 +0000 @@ -66,8 +66,8 @@ d.border = mgr.renderer.getBorder (borderType, widg.isWSizable, widg.isHSizable); mw = widg.minWidth + border.x1 + border.x2; mh = widg.minHeight + border.y1 + border.y2; - if (w < mw) w = mw; - if (h < mh) h = mh; + if (w < mw || !widg.isWSizable) w = mw; + if (h < mh || !widg.isHSizable) h = mh; widg.setWidth (w - border.x1 - border.x2, -1); widg.setHeight (h - border.y1 - border.y2, -1); }