Place full screen widget at the same relative position within main view

This commit is contained in:
Raphael Coeffic
2021-05-09 17:14:46 +02:00
parent 2a6a67dd5a
commit ead511cebd
+1
View File
@@ -173,6 +173,7 @@ void Widget::setFullscreen(bool fullscreen)
// Set window opaque (inhibits redraw from windows bellow)
setWindowFlags(getWindowFlags() | OPAQUE);
setRect(parent->getRect());
setLeft(parent->getScrollPositionX());
this->fullscreen = true;
fsStartedTS = RTOS_GET_MS();
bringToTop();