mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
some tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
664dd7c83e
commit
c48753f75f
@ -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
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user