summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/gtk/WebInspectorProxyGtk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/UIProcess/gtk/WebInspectorProxyGtk.cpp')
-rw-r--r--Source/WebKit2/UIProcess/gtk/WebInspectorProxyGtk.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/WebKit2/UIProcess/gtk/WebInspectorProxyGtk.cpp b/Source/WebKit2/UIProcess/gtk/WebInspectorProxyGtk.cpp
index fac19dc8f..4768ffc56 100644
--- a/Source/WebKit2/UIProcess/gtk/WebInspectorProxyGtk.cpp
+++ b/Source/WebKit2/UIProcess/gtk/WebInspectorProxyGtk.cpp
@@ -182,6 +182,11 @@ void WebInspectorProxy::platformAttach()
m_inspectorWindow = 0;
}
+ // Set a default attached height based on InspectorFrontendClientLocal.
+ static const unsigned defaultAttachedHeight = 300;
+ unsigned maximumAttachedHeight = platformInspectedWindowHeight() * 3 / 4;
+ platformSetAttachedWindowHeight(std::max(minimumAttachedHeight, std::min(defaultAttachedHeight, maximumAttachedHeight)));
+
if (m_client.attach(this))
return;