mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 03:40:09 +00:00
prevented editor from getting under the title bar...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
449af9bd1d
commit
416dab37f0
@ -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]){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user