Skip to content

Commit

Permalink
fix: rounding error in Height Match component
Browse files Browse the repository at this point in the history
  • Loading branch information
janschoenherr committed Oct 9, 2018
1 parent a9988ce commit d8392b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -13,6 +13,7 @@
- Fix Modal not hiding upon being destroyed
- Fix using node as offset in position mixin
- Fix using Height Match component on elements with different offsetParents
- Fix rounding error in Height Match component
- Fix `scope` command for already scoped css, comments are removed from generated css files
- Fix Sticky placeholder height on resize
- Fix starting/stopping of autoplay in Lightbox
Expand Down
2 changes: 1 addition & 1 deletion src/js/core/height-match.js
Expand Up @@ -65,7 +65,7 @@ function match(elements) {
}

heights = elements.map((el, i) =>
heights[i] === max && toFloat(el.style.minHeight) !== max ? '' : max
heights[i] === max && toFloat(el.style.minHeight).toFixed(2) !== max.toFixed(2) ? '' : max
);

return {heights, elements};
Expand Down

0 comments on commit d8392b1

Please sign in to comment.