Skip to content

Commit a76a19e

Browse files
committed
mistake!
1 parent 419190c commit a76a19e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/Scrollbar/index.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,11 @@ export default class Scrollbar extends Component
223223
}
224224

225225
/**
226-
* Scroll to the bottom brder
226+
* Scroll to the bottom border
227227
*
228228
* @return {Scrollbar}
229229
*/
230-
scrollToBotoom() {
230+
scrollToBottom() {
231231
if (!this.content) { return this; }
232232
this.content.scrollTop = this.content.scrollHeight;
233233

@@ -500,15 +500,11 @@ export default class Scrollbar extends Component
500500
const thumbHorizontalOffset = thumbHorizontalWidth ? scrollLeft / (scrollWidth - clientWidth) * (trackHorizontalInnerWidth - thumbHorizontalWidth) : 0,
501501
thumbVerticalOffset = thumbVerticalHeight ? scrollTop / (scrollHeight - clientHeight) * (trackVerticalInnerHeight - thumbVerticalHeight) : 0;
502502

503-
this.trackVertical.style.display = this.props.permanentScrollbars || this.props.permanentScrollbarVertical || thumbVerticalHeight
504-
? null
505-
: 'none';
503+
this.trackVertical.style.display = this.props.permanentScrollbars || this.props.permanentScrollbarVertical || thumbVerticalHeight ? null : 'none';
506504
this.thumbVertical.style.transform = `translateY(${thumbVerticalOffset}px)`;
507505
this.thumbVertical.style.height = thumbVerticalHeight + 'px';
508506

509-
this.trackHorizontal.style.display = this.props.permanentScrollbars || this.props.permanentScrollbarHorizontal || thumbHorizontalWidth
510-
? null
511-
: 'none';
507+
this.trackHorizontal.style.display = this.props.permanentScrollbars || this.props.permanentScrollbarHorizontal || thumbHorizontalWidth ? null : 'none';
512508
this.thumbHorizontal.style.transform = `translateX(${thumbHorizontalOffset}px)`;
513509
this.thumbHorizontal.style.width = thumbHorizontalWidth + 'px';
514510

0 commit comments

Comments
 (0)