mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-11-03 21:00:14 +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')
 | 
										$('.viewer')
 | 
				
			||||||
						.append(makeEditorControls('.current.image')
 | 
											.append(makeEditorControls('.current.image')
 | 
				
			||||||
							.addClass('noScroll')
 | 
												.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...
 | 
												// make clicks on unfocusable elements remove focus...
 | 
				
			||||||
							.click(function(){
 | 
												.click(function(){
 | 
				
			||||||
								if(event.target != $('.panel :focus')[0]){
 | 
													if(event.target != $('.panel :focus')[0]){
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user