tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-11-05 01:23:47 +03:00
parent 106f1660c1
commit 1de1d8fa14
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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(){