fix(color): built in widgets not resizing properly when view decorations altered (#5247)
This commit is contained in:
@@ -83,7 +83,10 @@ class Widget : public ButtonBase
|
||||
virtual void background() {}
|
||||
|
||||
// Update widget 'zone' data (for Lua widgets)
|
||||
virtual void updateZoneRect(rect_t rect, bool updateUI = true) {}
|
||||
virtual void updateZoneRect(rect_t rect, bool updateUI = true)
|
||||
{
|
||||
if (updateUI) update();
|
||||
}
|
||||
|
||||
void enableFocus(bool enable);
|
||||
|
||||
|
||||
@@ -132,6 +132,7 @@ class WidgetsContainerImpl : public WidgetsContainer
|
||||
|
||||
void updateZones() override
|
||||
{
|
||||
adjustLayout();
|
||||
for (int i = 0; i < N; i++) {
|
||||
if (widgets[i]) {
|
||||
auto zone = getZone(i);
|
||||
|
||||
Reference in New Issue
Block a user