From 853e7324e997db1cf595061711baa47e99e03136 Mon Sep 17 00:00:00 2001 From: v4hn Date: Wed, 15 Apr 2020 22:19:11 +0200 Subject: [PATCH] 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. --- visualization/motion_planning_tasks/src/task_panel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/visualization/motion_planning_tasks/src/task_panel.cpp b/visualization/motion_planning_tasks/src/task_panel.cpp index fee4cad9..be1cd4a8 100644 --- a/visualization/motion_planning_tasks/src/task_panel.cpp +++ b/visualization/motion_planning_tasks/src/task_panel.cpp @@ -260,6 +260,9 @@ TaskView::TaskView(moveit_rviz_plugin::TaskPanel* parent, rviz::Property* root) : SubPanel(parent), d_ptr(new TaskViewPrivate(this)) { Q_D(TaskView); + d_ptr->tasks_property_splitter->setStretchFactor(0, 3); + d_ptr->tasks_property_splitter->setStretchFactor(1, 1); + // connect signals connect(d->actionRemoveTaskTreeRows, SIGNAL(triggered()), this, SLOT(removeSelectedStages())); connect(d->actionAddLocalTask, SIGNAL(triggered()), this, SLOT(addTask()));