some cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-04-24 14:52:52 +03:00
parent 9647c0c9f5
commit 169e9a6d45

View File

@ -56,21 +56,6 @@ var core = require('features/core')
//
// D)
// image
// + - - - - - - - +
// . .
// +---------------+
// | viewer | - image bigger than viewer in one dimension
// | ^ | - block grows to fit image proportions
// | | | - need to account for individual image
// | v | proportions
// | | - drag enabled
// +---------------+
// . .
// + - - - - - - - +
//
//
// E)
// image
// + - - - - - - - - - +
// . .
// . +---------------+ .
@ -88,6 +73,7 @@ var core = require('features/core')
// XXX .ribbons.correctImageProportionsForRotation(..) might be working
// incorrectly...
// ...when scaling a horizontal image, the thing starts jumping around....
// XXX alignment issues in some orientations...
function updateImageProportions(){
var that = this
var threshold = this.config['single-image-proportions-threshold'] || 2