Reverted more SetMinimalSize() hacks

This commit is contained in:
pelya
2015-04-14 13:23:21 +03:00
parent fe72293c37
commit 34e886c5e5
5 changed files with 26 additions and 37 deletions

View File

@@ -1541,16 +1541,6 @@ public:
* @return the button configuration.
*/
virtual const byte *GetButtonArrangement(uint &width, uint &arrangable_count, uint &button_count, uint &spacer_count) const = 0;
/**
* Override NWidgetContainer::Add to setup minimal button size,
* this will force buttons to resize to the min_button size defined in settings
*/
void Add(NWidgetResizeBase *child)
{
child->SetMinimalSize(9,9);
NWidgetContainer::Add(child);
}
};
/** Container for the 'normal' main toolbar */