fixed a long standing image proportions bug...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-12-02 23:21:14 +03:00
parent 2e9288da00
commit d886704fce
2 changed files with 3 additions and 8 deletions

View File

@ -115,6 +115,7 @@ var SingleImageActions = actions.Actions({
},
// XXX make this accept args for debuging...
// XXX should this size images via vmin rather than px???
updateImageProportions: ['- Interface/',
function(){
var that = this
@ -173,14 +174,7 @@ var SingleImageActions = actions.Actions({
// new size...
var n = di + d
// the amount to compensate ribbon offset for per image...
var x = n - dm
if(n == dm){
return
}
// XXX not sure why we need to get animation frame here...
getAnimationFrame(function(){
that.ribbons.preventTransitions()

View File

@ -82,6 +82,7 @@ var obj2transform = function(obj, filter){
}
// XXX add support for units and unit unification...
// XXX BUG: passing '' to an alias will clear ALL the aliased functions...
// ...should clear only full matches...
// XXX BUG: passing '' to a multi-arg function will clear the args but