Skip to content

Commit

Permalink
Set ContentsMargins for RenderPanel to 0 to avoid borders in fullscre…
Browse files Browse the repository at this point in the history
…en mode. Fixes #1024 (#1228)
  • Loading branch information
bochen87 authored Jul 22, 2024
1 parent c209043 commit 642b1a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rviz_common/src/rviz_common/render_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 642b1a3

Please sign in to comment.