mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #1261 from pypeclub/feature/modifiable_dict_offset
Modifiable dict offset in UI
This commit is contained in:
commit
069dfaf0f2
1 changed files with 5 additions and 1 deletions
|
|
@ -550,7 +550,9 @@ class DictMutableKeysWidget(BaseWidget):
|
|||
|
||||
label = self.entity.label
|
||||
body_widget = None
|
||||
content_left_margin = 0
|
||||
if label:
|
||||
content_left_margin = CHILD_OFFSET
|
||||
body_widget = ExpandingWidget(label, self)
|
||||
main_layout.addWidget(body_widget)
|
||||
label = None
|
||||
|
|
@ -565,7 +567,9 @@ class DictMutableKeysWidget(BaseWidget):
|
|||
content_widget.setObjectName("ContentWidget")
|
||||
content_widget.setProperty("content_state", content_state)
|
||||
content_layout = QtWidgets.QVBoxLayout(content_widget)
|
||||
content_layout.setContentsMargins(CHILD_OFFSET, 5, 0, bottom_margin)
|
||||
content_layout.setContentsMargins(
|
||||
content_left_margin, 5, 0, bottom_margin
|
||||
)
|
||||
|
||||
if body_widget is None:
|
||||
main_layout.addWidget(content_widget)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue