Skip to content

Commit

Permalink
Merge pull request #151 from ros-visualization/rqt_reconfigure_layout…
Browse files Browse the repository at this point in the history
…_quirks

fix some rqt_reconfigure layout quirks (#150)
  • Loading branch information
dirk-thomas committed Aug 17, 2013
2 parents db9a689 + ce1aecb commit 4be6fd8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rqt_reconfigure/resource/editor_number.ui
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="_layout_h">
<layout class="QHBoxLayout" name="_layout_h" stretch="0,0,1,0,0">
<item>
<widget class="QLabel" name="_paramname_label">
<property name="text">
Expand Down
2 changes: 1 addition & 1 deletion rqt_reconfigure/src/rqt_reconfigure/param_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def __init__(self, updater, config, nodename):
grid_widget = QWidget(self)
self.grid = QFormLayout(grid_widget)
verticalLayout.addWidget(_widget_nodeheader)
verticalLayout.addWidget(grid_widget)
verticalLayout.addWidget(grid_widget, 1)
# Again, these UI operation above needs to happen in .ui file.

self.tab_bar = None # Every group can have one tab bar
Expand Down
4 changes: 2 additions & 2 deletions rqt_reconfigure/src/rqt_reconfigure/param_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def __init__(self, context, node=None):
self._splitter.insertWidget(1, reconf_widget)
# 1st column, _vlayout_nodesel_widget, to minimize width.
# 2nd col to keep the possible max width.
self._splitter.setStretchFactor(0, 1)
self._splitter.setStretchFactor(1, 0)
self._splitter.setStretchFactor(0, 0)
self._splitter.setStretchFactor(1, 1)

# Signal from paramedit widget to node selector widget.
reconf_widget.sig_node_disabled_selected.connect(
Expand Down

0 comments on commit 4be6fd8

Please sign in to comment.