summaryrefslogtreecommitdiffstats
path: root/examples/webengine/quicknanobrowser
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-10-23 17:50:27 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-10-23 16:53:19 +0000
commit61873d85afdebcd2921ebb0564c4ca3a53a992a8 (patch)
tree24a039685aba66b529f70fe3100d1d55c70cb303 /examples/webengine/quicknanobrowser
parent94bb5644907c16b742d05a6f51cc82785b945f4a (diff)
Fix size of tab view when devtools are open
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 <juri.valdmann@qt.io>
Diffstat (limited to 'examples/webengine/quicknanobrowser')
-rw-r--r--examples/webengine/quicknanobrowser/BrowserWindow.qml7
1 files changed, 5 insertions, 2 deletions
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