mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
fixed a long standing image proportions bug...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
2e9288da00
commit
d886704fce
@ -115,6 +115,7 @@ var SingleImageActions = actions.Actions({
|
|||||||
},
|
},
|
||||||
|
|
||||||
// XXX make this accept args for debuging...
|
// XXX make this accept args for debuging...
|
||||||
|
// XXX should this size images via vmin rather than px???
|
||||||
updateImageProportions: ['- Interface/',
|
updateImageProportions: ['- Interface/',
|
||||||
function(){
|
function(){
|
||||||
var that = this
|
var that = this
|
||||||
@ -173,14 +174,7 @@ var SingleImageActions = actions.Actions({
|
|||||||
// new size...
|
// new size...
|
||||||
var n = di + d
|
var n = di + d
|
||||||
|
|
||||||
// the amount to compensate ribbon offset for per image...
|
// XXX not sure why we need to get animation frame here...
|
||||||
var x = n - dm
|
|
||||||
|
|
||||||
|
|
||||||
if(n == dm){
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
getAnimationFrame(function(){
|
getAnimationFrame(function(){
|
||||||
that.ribbons.preventTransitions()
|
that.ribbons.preventTransitions()
|
||||||
|
|
||||||
|
|||||||
@ -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...
|
// XXX BUG: passing '' to an alias will clear ALL the aliased functions...
|
||||||
// ...should clear only full matches...
|
// ...should clear only full matches...
|
||||||
// XXX BUG: passing '' to a multi-arg function will clear the args but
|
// XXX BUG: passing '' to a multi-arg function will clear the args but
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user