From 416dab37f0947b5217928b9995163bb6c9a2f8f3 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 1 Dec 2013 07:59:07 +0400 Subject: [PATCH] prevented editor from getting under the title bar... Signed-off-by: Alex A. Naanou --- ui/editor.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/editor.js b/ui/editor.js index 6fc13930..4be0eb6a 100755 --- a/ui/editor.js +++ b/ui/editor.js @@ -21,6 +21,12 @@ var toggleEditor = createCSSClassToggler( $('.viewer') .append(makeEditorControls('.current.image') .addClass('noScroll') + .css({ + // prevent the editor from moving under + // the title bar, that will prevent us from + // ever moving it away or closing it... + 'margin-top': '20px', + }) // make clicks on unfocusable elements remove focus... .click(function(){ if(event.target != $('.panel :focus')[0]){