diff --git a/html/monocle/scripts/monocore.js b/html/monocle/scripts/monocore.js index 3844ecd..f5c988b 100644 --- a/html/monocle/scripts/monocore.js +++ b/html/monocle/scripts/monocore.js @@ -4591,8 +4591,12 @@ Monocle.Panels.Marginal = function (flipper, evtCallbacks) { var sheaf = page.m.sheafDiv; var bw = sheaf.offsetLeft; var fw = page.offsetWidth - (sheaf.offsetLeft + sheaf.offsetWidth); - bw = Math.floor(((bw - 2) / page.offsetWidth) * 10000 / 100) + "%"; - fw = Math.floor(((fw - 2) / page.offsetWidth) * 10000 / 100) + "%"; + //bw = Math.floor(((bw - 2) / page.offsetWidth) * 10000 / 100) + "%"; + //fw = Math.floor(((fw - 2) / page.offsetWidth) * 10000 / 100) + "%"; + bw = Math.round(((bw - 2) / page.offsetWidth) * 10000 / 100 ); + fw = Math.round(((fw - 2) / page.offsetWidth) * 10000 / 100 ); + bw = Math.max(bw, 5) + "%"; + fw = Math.max(fw, 5) + "%"; p.panels.forwards.properties.div.style.width = fw; p.panels.backwards.properties.div.style.width = bw; } diff --git a/ui/Server.qml b/ui/Server.qml index 289ce27..b5d5ed4 100644 --- a/ui/Server.qml +++ b/ui/Server.qml @@ -41,7 +41,6 @@ HttpServer { var locus = getBookSetting("locus") if (locus == undefined) locus = null - console.log("locus: " + JSON.stringify(locus)); response.write("SAVED_PLACE = " + JSON.stringify(locus) + ";\n") response.end()