From 61873d85afdebcd2921ebb0564c4ca3a53a992a8 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 23 Oct 2018 17:50:27 +0200 Subject: Fix size of tab view when devtools are open MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The tabs view still trying to fill the entire view even when the bottom was taken by the devtools view. Change-Id: Ia1c4fc7aa9648bf19d5f79dd7ac95ec611318105 Reviewed-by: Jüri Valdmann --- examples/webengine/quicknanobrowser/BrowserWindow.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/webengine/quicknanobrowser/BrowserWindow.qml b/examples/webengine/quicknanobrowser/BrowserWindow.qml index 7b8767b8d..8d62482da 100644 --- a/examples/webengine/quicknanobrowser/BrowserWindow.qml +++ b/examples/webengine/quicknanobrowser/BrowserWindow.qml @@ -367,7 +367,10 @@ ApplicationWindow { return tab; } - anchors.fill: parent + anchors.top: parent.top + anchors.bottom: devToolsView.top + anchors.left: parent.left + anchors.right: parent.right Component.onCompleted: createEmptyTab(defaultProfile) Component { @@ -500,7 +503,7 @@ ApplicationWindow { WebEngineView { id: devToolsView visible: devToolsEnabled.checked - height: 400 + height: visible ? 400 : 0 inspectedView: visible && tabs.currentIndex < tabs.count ? tabs.getTab(tabs.currentIndex).item : null anchors.left: parent.left anchors.right: parent.right -- cgit v1.2.3