Showing the changes to interface/src/scripting/WebWindowClass.cpp (1 of 1 file). Show all
Unified · Split
| @@ -57,7 +57,14 @@ WebWindowClass::WebWindowClass(const QString& title, const QString& url, int wid · 56 unmodified lines | ||
| 57 | 57 | _windowWidget = new QWidget(Application::getInstance()->getWindow(), Qt::Window); |
| 58 | 58 | _windowWidget->setMinimumSize(width, height); |
| 59 | 59 | |
| 60 | + auto layout = new QVBoxLayout(_windowWidget); | |
| 61 | + layout->setContentsMargins(0, 0, 0, 0); | |
| 62 | + _windowWidget->setLayout(layout); | |
| 63 | + | |
| 60 | 64 | _webView = new QWebView(_windowWidget); |
| 65 | + | |
| 66 | + layout->addWidget(_webView); | |
| 67 | + | |
| 61 | 68 | addEventBridgeToWindowObject(); |
| 62 | 69 | } |
| 63 | 70 | |