Reverted more SetMinimalSize() hacks

This commit is contained in:
pelya
2015-04-14 13:23:21 +03:00
parent 1af24b9102
commit 5a4ddb9de0
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 */