Skip to content

Commit

Permalink
fix: Placeholder height in Sticky Navbar with Dropbar
Browse files Browse the repository at this point in the history
  • Loading branch information
janschoenherr committed Sep 25, 2018
1 parent e001424 commit 94874b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -22,6 +22,7 @@
- Allow for special characters in URI hash in Scroll Component
- Height Match also sets a `height` in IE
- Slideshow sets `min-height` instead of `height`
- Fix placeholder `height` in Sticky Navbar with Dropbar

## 3.0.0 rc 16 (September 12, 2018)

Expand Down
4 changes: 2 additions & 2 deletions src/js/core/sticky.js
Expand Up @@ -133,10 +133,10 @@ export default {

{

read() {
read({height}) {
return {
top: offset(this.isActive ? this.placeholder : this.$el).top,
height: css(this.$el, 'position') !== 'absolute' ? this.$el.offsetHeight : '',
height: !this.isActive ? this.$el.offsetHeight : height,
margins: css(this.$el, ['marginTop', 'marginBottom', 'marginLeft', 'marginRight'])
};
},
Expand Down

0 comments on commit 94874b6

Please sign in to comment.