Skip to content

Commit 853e732

Browse files
committed
panel: have property-view occupy much less space by default
The initially more important part of the panel is clearly the task structure. For longer tasks, the empty properties-view adds a scrollbar to the task when none would be needed.
1 parent 73fdca1 commit 853e732

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

visualization/motion_planning_tasks/src/task_panel.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ TaskView::TaskView(moveit_rviz_plugin::TaskPanel* parent, rviz::Property* root)
260260
: SubPanel(parent), d_ptr(new TaskViewPrivate(this)) {
261261
Q_D(TaskView);
262262

263+
d_ptr->tasks_property_splitter->setStretchFactor(0, 3);
264+
d_ptr->tasks_property_splitter->setStretchFactor(1, 1);
265+
263266
// connect signals
264267
connect(d->actionRemoveTaskTreeRows, SIGNAL(triggered()), this, SLOT(removeSelectedStages()));
265268
connect(d->actionAddLocalTask, SIGNAL(triggered()), this, SLOT(addTask()));

0 commit comments

Comments
 (0)