From c48753f75f98d3682ee0b5f16c29552a594126fd Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 21 May 2017 15:24:06 +0300 Subject: [PATCH] some tweaking... Signed-off-by: Alex A. Naanou --- ui (gen4)/imagegrid/ribbons.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui (gen4)/imagegrid/ribbons.js b/ui (gen4)/imagegrid/ribbons.js index 3cabc883..ad04e394 100755 --- a/ui (gen4)/imagegrid/ribbons.js +++ b/ui (gen4)/imagegrid/ribbons.js @@ -737,10 +737,14 @@ var BaseRibbonsPrototype = { 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 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 },