Skip to content

Commit 642b1a3

Browse files
authored
Set ContentsMargins for RenderPanel to 0 to avoid borders in fullscreen mode. Fixes #1024 (#1228)
1 parent c209043 commit 642b1a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rviz_common/src/rviz_common/render_panel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ RenderPanel::RenderPanel(QWidget * parent)
7777
setFocus(Qt::OtherFocusReason);
7878
render_window_container_widget_ = QWidget::createWindowContainer(render_window_, this);
7979
layout_ = new QGridLayout(this);
80+
layout_->setContentsMargins(0, 0, 0, 0);
8081
layout_->addWidget(render_window_container_widget_);
8182
this->setLayout(layout_);
8283
render_window_->setOnRenderWindowMouseEventsCallback(

0 commit comments

Comments
 (0)