Skip to content

Commit f0bee03

Browse files
greimela-siwjwwood
authored andcommitted
Resize render window in expose event to correctly scale the content (#74)
1 parent 02d72fb commit f0bee03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rviz_rendering/src/rviz_rendering/render_window.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ RenderWindow::exposeEvent(QExposeEvent * expose_event)
180180
Q_UNUSED(expose_event);
181181

182182
if (this->isExposed()) {
183+
impl_->resize(this->width(), this->height());
183184
this->renderNow();
184185
}
185186
}

0 commit comments

Comments
 (0)