mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
cleanup + minor fixes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
746139a49a
commit
9059b615fd
@ -257,6 +257,7 @@ module.SingleImageView = core.ImageGridFeatures.Feature({
|
||||
// images properly after changing scale...
|
||||
// XXX this is still not perfect...
|
||||
// ...if needed do a .reload() / ctrl-r
|
||||
// XXX try doing this a timeout after resize....
|
||||
['focusImage',
|
||||
function(){
|
||||
var img = this.ribbons.getImage()
|
||||
@ -388,9 +389,12 @@ module.SingleImageViewLocalStorage = core.ImageGridFeatures.Feature({
|
||||
return
|
||||
}
|
||||
|
||||
this.scale = this.toggleSingleImage('?') == 'on' ?
|
||||
iscale
|
||||
: rscale
|
||||
if(this.toggleSingleImage('?') == 'on'){
|
||||
this[this.config['single-image-scale-unit']] = iscale
|
||||
|
||||
} else {
|
||||
this[this.config['ribbon-scale-unit']] = rscale
|
||||
}
|
||||
}
|
||||
}],
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user