mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-07-29 14:36:06 -04:00
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