mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-11-06 01:33:26 +01:00
fix(bec_status_box): keep QWidget rows at natural height when the list is short
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015TeMnCZ9FjLpwiDkPu6K9j
This commit is contained in:
1 file changed
+2
@@ -175,6 +175,8 @@ class ServiceRowWidget(QFrame):
|
||||
self.setObjectName("ServiceRow")
|
||||
self.setCursor(Qt.CursorShape.PointingHandCursor)
|
||||
self.setAttribute(Qt.WidgetAttribute.WA_Hover)
|
||||
# keep rows at their natural height so short lists do not spread out
|
||||
self.setSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Maximum)
|
||||
self.row = None
|
||||
self.expanded = False
|
||||
self._hovered = False
|
||||
|
||||
Reference in new issue
Block a user