Merge branch 'master' into jgrpp
# Conflicts: # src/widget.cpp
This commit is contained in:
@@ -110,7 +110,7 @@ public:
|
||||
this->Add(leaf);
|
||||
}
|
||||
|
||||
void SetupSmallestSize(Window *w, bool init_array) override
|
||||
void SetupSmallestSize(Window *w) override
|
||||
{
|
||||
this->smallest_y = 0; // Biggest child.
|
||||
this->fill_x = 1;
|
||||
@@ -120,7 +120,7 @@ public:
|
||||
|
||||
/* First initialise some variables... */
|
||||
for (NWidgetBase *child_wid = this->head; child_wid != nullptr; child_wid = child_wid->next) {
|
||||
child_wid->SetupSmallestSize(w, init_array);
|
||||
child_wid->SetupSmallestSize(w);
|
||||
this->smallest_y = std::max(this->smallest_y, child_wid->smallest_y + child_wid->padding.Vertical());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user