Skip to content

Commit

Permalink
Merge pull request #159 from jerone/issues/#156-offsetheight
Browse files Browse the repository at this point in the history
Fixed wrong calculation for gutter shadow
  • Loading branch information
jerone authored Aug 7, 2016
2 parents 1fadaf1 + 7a14d65 commit f5bfc2e
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 f5bfc2e

Please sign in to comment.