some tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-05-21 15:24:06 +03:00
parent 664dd7c83e
commit c48753f75f

View File

@ -737,10 +737,14 @@ var BaseRibbonsPrototype = {
return this return this
} }
// NOTE: we need to use the same unit here as is used to size
// the image blocks...
var unit = 'vmin'
var t = ribbon[0].offsetTop var t = ribbon[0].offsetTop
var h = ribbon[0].offsetHeight var h = ribbon[0].offsetHeight
locator.transform({ x: 0, y: this.px2vh(-(t + h/2)) + 'vh', z: 0 }) locator.transform({ x: 0, y: this.px2v(-(t + h/2), unit) + unit, z: 0 })
return this return this
}, },