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...
|
// images properly after changing scale...
|
||||||
// XXX this is still not perfect...
|
// XXX this is still not perfect...
|
||||||
// ...if needed do a .reload() / ctrl-r
|
// ...if needed do a .reload() / ctrl-r
|
||||||
|
// XXX try doing this a timeout after resize....
|
||||||
['focusImage',
|
['focusImage',
|
||||||
function(){
|
function(){
|
||||||
var img = this.ribbons.getImage()
|
var img = this.ribbons.getImage()
|
||||||
@ -388,9 +389,12 @@ module.SingleImageViewLocalStorage = core.ImageGridFeatures.Feature({
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
this.scale = this.toggleSingleImage('?') == 'on' ?
|
if(this.toggleSingleImage('?') == 'on'){
|
||||||
iscale
|
this[this.config['single-image-scale-unit']] = iscale
|
||||||
: rscale
|
|
||||||
|
} else {
|
||||||
|
this[this.config['ribbon-scale-unit']] = rscale
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user