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:
@@ -1396,6 +1396,12 @@ void DeviceView::InitDeviceView()
|
||||
}
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| Determine minimum height |
|
||||
\*-----------------------------------------------------*/
|
||||
init_size.setHeight(total_height * 15);
|
||||
updateGeometry();
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| Update LED labels |
|
||||
\*-----------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user