From f0454a11e55ec4fa064e124d5d96b0e3e4d9b01e Mon Sep 17 00:00:00 2001 From: Robert Braun Date: Fri, 7 Jun 2024 12:16:16 +0200 Subject: [PATCH] Fix wrong width and height of workspace canvas --- HopsanGUI/GraphicsView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HopsanGUI/GraphicsView.cpp b/HopsanGUI/GraphicsView.cpp index 94f4689f1..fe9713c2e 100644 --- a/HopsanGUI/GraphicsView.cpp +++ b/HopsanGUI/GraphicsView.cpp @@ -89,7 +89,7 @@ GraphicsView::GraphicsView(ModelWidget *parent) this->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); //This scene rect is needed because the old scene was (0,0) - (5000,5000) with center in (2500,2500). //We need to ensure the center is still at the same position even though the scene is now larger. - this->setSceneRect(-25000+2500,-25000+2500,25000+2500,25000+2500); + this->setSceneRect(-25000+2500,-25000+2500,50000,50000); this->centerOn(this->sceneRect().center()); mIsoColor = QColor("white");