mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
106f1660c1
commit
1de1d8fa14
@ -1533,7 +1533,7 @@ module.RibbonsPrototype = {
|
|||||||
//
|
//
|
||||||
// XXX might be usefull to set origin before scaling...
|
// XXX might be usefull to set origin before scaling...
|
||||||
fitImage: function(n){
|
fitImage: function(n){
|
||||||
n = n == null ? 1 : n
|
n = n || 1
|
||||||
|
|
||||||
// NOTE: this is width oriented...
|
// NOTE: this is width oriented...
|
||||||
var scale = this.getScreenWidthImages(1) / n
|
var scale = this.getScreenWidthImages(1) / n
|
||||||
@ -1558,6 +1558,7 @@ module.RibbonsPrototype = {
|
|||||||
// number of images in width...
|
// number of images in width...
|
||||||
// XXX this does not account for ribbon spacing...
|
// XXX this does not account for ribbon spacing...
|
||||||
fitRibbon: function(n, fit_whole_images){
|
fitRibbon: function(n, fit_whole_images){
|
||||||
|
n = n || 1
|
||||||
fit_whole_images = fit_whole_images == null ? true : false
|
fit_whole_images = fit_whole_images == null ? true : false
|
||||||
|
|
||||||
var h = this.getVisibleImageSize('height', 1)
|
var h = this.getVisibleImageSize('height', 1)
|
||||||
|
|||||||
@ -1355,7 +1355,7 @@ module.CurrentImageIndicator = Feature({
|
|||||||
// - before animation when scaling up
|
// - before animation when scaling up
|
||||||
// - after when scaling down
|
// - after when scaling down
|
||||||
// This is done to make the visuals consistent...
|
// This is done to make the visuals consistent...
|
||||||
.on( 'fitImage.pre', this.tag, function(w1){
|
.on( 'fitImage.pre fitRibbon.pre', this.tag, function(w1){
|
||||||
var w0 = this.screenwidth
|
var w0 = this.screenwidth
|
||||||
w1 = w1 || 1
|
w1 = w1 || 1
|
||||||
return function(){
|
return function(){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user