Skip to content

Commit

Permalink
🐛 Fixed wrong calculation for gutter shadow. Fixes #156
Browse files Browse the repository at this point in the history
  • Loading branch information
jerone committed Aug 7, 2016
1 parent 1fadaf1 commit 7a14d65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tries to follow the [Keep a CHANGELOG](http://keepachangelog.com) convention.

* :art: Full-width is the new standard for the status-bar This restores bottom
border for vertical tool-bars with the One theme. Closes [#157](https://github.com/suda/tool-bar/issues/157)
* :bug: Fixed wrong calculation for gutter shadow. Fixes [#156](https://github.com/suda/tool-bar/issues/156)

## [v1.0.0](https://github.com/suda/tool-bar/compare/v0.4.0...v1.0.0) - 2016-07-03

Expand Down
2 changes: 1 addition & 1 deletion lib/tool-bar-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default class ToolBarView {
drawGutter () {
this.element.classList.remove('gutter-top', 'gutter-bottom');

const visibleHeight = this.element.getBoundingClientRect().height;
const visibleHeight = this.element.offsetHeight;
const scrollHeight = this.element.scrollHeight;
const hiddenHeight = scrollHeight - visibleHeight;

Expand Down

0 comments on commit 7a14d65

Please sign in to comment.