mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-17 00:31:40 +00:00
some tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
209f92b1bf
commit
0fc2ebd064
@ -52,10 +52,8 @@ $(function(){
|
||||
|
||||
$(window)
|
||||
.resize(function() {
|
||||
// XXX should this be animated or not?
|
||||
correctImageProportionsForRotation('.images')
|
||||
centerView()
|
||||
|
||||
// XXX problems in single image mode after hitting F11...
|
||||
})
|
||||
|
||||
$(document)
|
||||
|
||||
@ -482,8 +482,11 @@ var KEYBOARD_CONFIG = {
|
||||
})
|
||||
},
|
||||
|
||||
F4: doc('Open image in external software', openImage),
|
||||
E: 'F4',
|
||||
E: doc('Open image in external software', openImage),
|
||||
F4: {
|
||||
default: 'E',
|
||||
alt: doc('Close viewer'),
|
||||
},
|
||||
|
||||
|
||||
P: doc('Show options',
|
||||
|
||||
@ -314,7 +314,7 @@ var toggleImageProportions = createCSSClassToggler('.viewer',
|
||||
var w = image.outerWidth(true)
|
||||
|
||||
// viewer proportions...
|
||||
if(action == 'fit-image-to-viewer'){
|
||||
if(action == 'fit-viewer'){
|
||||
var viewer = $('.viewer')
|
||||
var W = viewer.innerWidth()
|
||||
var H = viewer.innerHeight()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user