Skip to content

Commit d6eb8e0

Browse files
committed
Colormap editor layout: added stretch at bottom
1 parent 20ca009 commit d6eb8e0

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

plotpy/widgets/colormap/editor.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,11 @@ def __init__(
134134
self.tabs.setCurrentIndex(0)
135135
self.update_tabs_names_from_current()
136136

137-
self.editor_layout = QW.QVBoxLayout(self)
138-
139-
self.editor_layout.addWidget(self.colormap_widget)
140-
self.editor_layout.addWidget(self.tabs)
141-
142-
self.setLayout(self.editor_layout)
137+
layout = QW.QVBoxLayout(self)
138+
layout.addWidget(self.colormap_widget)
139+
layout.addWidget(self.tabs)
140+
layout.addStretch(1)
141+
self.setLayout(layout)
143142

144143
self.colormap_widget.HANDLE_SELECTED.connect(self.change_current_dataset)
145144
self.colormap_widget.HANDLE_ADDED.connect(self.new_tab)

0 commit comments

Comments
 (0)