Mercurial > projects > mde
comparison mde/gui/widget/layout.d @ 129:ad91de8867a0
Added a widget size printing debug function. Fixed a bug in SwitchWidget.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 15 Jan 2009 16:52:46 +0000 |
parents | c9843fbaac88 |
children | c5c38eaadb64 |
comparison
equal
deleted
inserted
replaced
128:41582439a42b | 129:ad91de8867a0 |
---|---|
689 | 689 |
690 mw = spacing * cast(wdim)(cols - 1); | 690 mw = spacing * cast(wdim)(cols - 1); |
691 foreach (imw; minWidth) | 691 foreach (imw; minWidth) |
692 mw += imw; | 692 mw += imw; |
693 | 693 |
694 if (nd < 0 || (nd > 0 && !sizable[col])) { // needs enlarging or shrinking | 694 if (nd != 0) { // needs enlarging or shrinking |
695 width[col] = nmw; | 695 width[col] = nmw; |
696 foreach (cb; cbs) | 696 foreach (cb; cbs) |
697 cb.setWidth (col, nmw, -1); | 697 cb.setWidth (col, nmw, -1); |
698 if (lastSizable >= 0) | 698 if (lastSizable >= 0) |
699 adjustCellSizes (nd, lastSizable, -1); // doesn't necessarily resize exactly | 699 adjustCellSizes (nd, lastSizable, -1); // doesn't necessarily resize exactly |