Fix: Specify width when width is required instead of top.
(cherry picked from commit f5569763c9
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
7bf0eefd36
commit
23938cb583
@@ -2349,19 +2349,19 @@ NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, int index, uint32 data,
|
|||||||
|
|
||||||
case WWT_SHADEBOX:
|
case WWT_SHADEBOX:
|
||||||
this->SetFill(0, 0);
|
this->SetFill(0, 0);
|
||||||
this->SetMinimalSize(WD_SHADEBOX_TOP, WD_CAPTION_HEIGHT);
|
this->SetMinimalSize(WD_SHADEBOX_WIDTH, WD_CAPTION_HEIGHT);
|
||||||
this->SetDataTip(STR_NULL, STR_TOOLTIP_SHADE);
|
this->SetDataTip(STR_NULL, STR_TOOLTIP_SHADE);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WWT_DEBUGBOX:
|
case WWT_DEBUGBOX:
|
||||||
this->SetFill(0, 0);
|
this->SetFill(0, 0);
|
||||||
this->SetMinimalSize(WD_DEBUGBOX_TOP, WD_CAPTION_HEIGHT);
|
this->SetMinimalSize(WD_DEBUGBOX_WIDTH, WD_CAPTION_HEIGHT);
|
||||||
this->SetDataTip(STR_NULL, STR_TOOLTIP_DEBUG);
|
this->SetDataTip(STR_NULL, STR_TOOLTIP_DEBUG);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WWT_DEFSIZEBOX:
|
case WWT_DEFSIZEBOX:
|
||||||
this->SetFill(0, 0);
|
this->SetFill(0, 0);
|
||||||
this->SetMinimalSize(WD_DEFSIZEBOX_TOP, WD_CAPTION_HEIGHT);
|
this->SetMinimalSize(WD_DEFSIZEBOX_WIDTH, WD_CAPTION_HEIGHT);
|
||||||
this->SetDataTip(STR_NULL, STR_TOOLTIP_DEFSIZE);
|
this->SetDataTip(STR_NULL, STR_TOOLTIP_DEFSIZE);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user