(svn r17017) -Fix (r17008): Setup padding for WWT_MATRIX.

This commit is contained in:
alberth 2009-08-01 10:06:52 +00:00
parent 641e80798f
commit 602ac83d8e

View File

@ -1980,7 +1980,6 @@ void NWidgetLeaf::SetupSmallestSize(Window *w, bool init_array)
const Dimension *padding = NULL;
switch (this->type) {
case WWT_EMPTY:
case WWT_MATRIX:
case WWT_SCROLLBAR:
case WWT_SCROLL2BAR:
case WWT_HSCROLLBAR: {
@ -1988,6 +1987,11 @@ void NWidgetLeaf::SetupSmallestSize(Window *w, bool init_array)
padding = &extra;
break;
}
case WWT_MATRIX: {
static const Dimension extra = {WD_MATRIX_LEFT + WD_MATRIX_RIGHT, WD_MATRIX_TOP + WD_MATRIX_BOTTOM};
padding = &extra;
break;
}
case WWT_STICKYBOX: {
static const Dimension extra = {WD_STICKYBOX_LEFT + WD_STICKYBOX_RIGHT, WD_STICKYBOX_TOP + WD_STICKYBOX_BOTTOM};
padding = &extra;