Verified Commit a4bfd012 authored by Camil Staps's avatar Camil Staps 🚀

Minor documentation browser fixes

parent bef6dc42
......@@ -32,6 +32,7 @@ window.onload = function() {
},
viewer: viewer,
onLoad: function(state) {
viewer.innerHTML += '<br/>';
if (state.jump != null) {
var l = document.getElementsByName(state.jump)[0].documentOffsetTop();
viewer.scrollTop = l - window.innerHeight/8;
......@@ -47,8 +48,8 @@ window.onload = function() {
var sidebar = document.getElementById('sidebar');
var viewer = document.getElementById('viewer');
if (window.innerWidth > 800) {
var height = window.innerHeight;
sidebar.style.height = (height - 20) + 'px';
var height = window.innerHeight - 20;
sidebar.style.height = height + 'px';
viewer.style.height = height + 'px';
}
......
......@@ -13,7 +13,7 @@
<link rel="stylesheet" href="../src/view.css" type="text/css"/>
<style type="text/css">
#viewer {
padding: 1em;
padding: 10px;
}
#viewer p {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment