Merge pull request #1233 from pypeclub/feature/hide_expanding_btn

Hide expand button if content does not contain any widget
This commit is contained in:
Milan Kolar 2021-03-31 15:32:30 +02:00 committed by GitHub
commit 77fbc0b655
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,6 +59,9 @@ class DictImmutableKeysWidget(BaseWidget):
)
)
if self.entity.use_label_wrap and self.content_layout.count() == 0:
self.body_widget.hide_toolbox(True)
self.entity_widget.add_widget_to_layout(self, label)
def _prepare_entity_layouts(self, children, widget):