diff options
author | Phil Hughes <me@iamphill.com> | 2017-08-01 14:41:55 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-08-01 14:41:55 +0300 |
commit | 8de14be21e4ee9ddf5d5c699a6299387318fd0bd (patch) | |
tree | 3e61bb22c8c2e64e2509a763f770dac4462e35fd /app/assets/javascripts/fly_out_nav.js | |
parent | 48ec70250cd63f5558f30698723555656eceff64 (diff) |
fixed translate3d test
Diffstat (limited to 'app/assets/javascripts/fly_out_nav.js')
-rw-r--r-- | app/assets/javascripts/fly_out_nav.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/fly_out_nav.js b/app/assets/javascripts/fly_out_nav.js index 67a58493fae..ae04826896b 100644 --- a/app/assets/javascripts/fly_out_nav.js +++ b/app/assets/javascripts/fly_out_nav.js @@ -18,7 +18,7 @@ export const showSubLevelItems = (el) => { const top = calculateTop(boundingRect, $subitems.offsetHeight); const isAbove = top < boundingRect.top; - $subitems.style.transform = `translate3d(0, ${top}px, 0)`; + $subitems.style.transform = `translate3d(0, ${Math.floor(top)}px, 0)`; if (isAbove) { $subitems.classList.add('is-above'); |