From 642b1a34b1a50bfa8afa76817ec3fe0e2f9cf210 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Mon, 22 Jul 2024 11:37:46 +0000 Subject: [PATCH] Set ContentsMargins for RenderPanel to 0 to avoid borders in fullscreen mode. Fixes #1024 (#1228) --- rviz_common/src/rviz_common/render_panel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rviz_common/src/rviz_common/render_panel.cpp b/rviz_common/src/rviz_common/render_panel.cpp index 9f0d9d02f..f8ca4fd6a 100644 --- a/rviz_common/src/rviz_common/render_panel.cpp +++ b/rviz_common/src/rviz_common/render_panel.cpp @@ -77,6 +77,7 @@ RenderPanel::RenderPanel(QWidget * parent) setFocus(Qt::OtherFocusReason); render_window_container_widget_ = QWidget::createWindowContainer(render_window_, this); layout_ = new QGridLayout(this); + layout_->setContentsMargins(0, 0, 0, 0); layout_->addWidget(render_window_container_widget_); this->setLayout(layout_); render_window_->setOnRenderWindowMouseEventsCallback(