Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2334)

Unified Diff: appengine/isolate/templates/browse.html

Issue 2759393004: Make isolate server look better on bigger screens (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/isolate/templates/base.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/isolate/templates/browse.html
diff --git a/appengine/isolate/templates/browse.html b/appengine/isolate/templates/browse.html
index 060869c17f8b1668ae2d355e3733e029c8e048dc..c37fb10ea4baa14b74db4412bf234517f9033988 100644
--- a/appengine/isolate/templates/browse.html
+++ b/appengine/isolate/templates/browse.html
@@ -21,7 +21,7 @@
}
iframe.use_all_space {
margin: 0;
- min-height: 80%;
+ min-height: 800px;
overflow-y: hidden;
padding: 0;
width: 100%;
@@ -44,6 +44,14 @@ Enter the namespace and digest of an object:<br>
<hr>
<div id="iframe-entry"></div>
-<iframe id="content" class="use_all_space" sandbox="allow-same-origin allow-popups" src="/content?namespace={{namespace}}&digest={{digest}}">
+<script>
+function fixHeight(){
+ var i = document.getElementById("content");
+ // We only have access to the iframe's inner content because it is a same-origin
+ // request. Add 40 pixels to avoid a nested horizontal scroll bar.
+ i.height = i.contentWindow.document.body.scrollHeight + 40;
+}
+</script>
+<iframe id="content" class="use_all_space" sandbox="allow-same-origin allow-popups" src="/content?namespace={{namespace}}&digest={{digest}}" onload="fixHeight()">
</iframe>
{% endblock %}
« no previous file with comments | « appengine/isolate/templates/base.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698