prevented editor from getting under the title bar...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-12-01 07:59:07 +04:00
parent 449af9bd1d
commit 416dab37f0

View File

@ -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]){