Dynamically set DeviceView minimum height based on height of contents to avoid devices with a lot of segments/zones getting squished

This commit is contained in:
Adam Honse
2026-07-08 20:05:21 -05:00
parent f32aa29ecd
commit 94295c52ba

View File

@@ -1396,6 +1396,12 @@ void DeviceView::InitDeviceView()
}
}
/*-----------------------------------------------------*\
| Determine minimum height |
\*-----------------------------------------------------*/
init_size.setHeight(total_height * 15);
updateGeometry();
/*-----------------------------------------------------*\
| Update LED labels |
\*-----------------------------------------------------*/