Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Don't show scrollbar for reply entry, close #3
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Apr 14, 2018
1 parent b20c3d8 commit 5fb0e9f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/view/chat-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,18 @@ class ChatBox {
this.view.addChildView(this.browser)

this.replyBox = gui.Container.create()
this.replyBox.setStyle({
padding: 5,
})
this.replyBox.setStyle({padding: 5})
this.view.addChildView(this.replyBox)

this.replyEntry = gui.TextEdit.create()
this.replyEntry.setStyle({height: 20})
this.replyEntry.onKeyUp = this.handleKeyUp.bind(this)
this.replyEntry.setEnabled(false)
if (process.platform !== 'win32') {
// Force using overlay scrollbar.
this.replyEntry.setOverlayScrollbar(true)
this.replyEntry.setScrollbarPolicy('never', 'automatic')
}
this.replyBox.addChildView(this.replyEntry)

// TODO Make a beautiful box on all platforms.
Expand Down

0 comments on commit 5fb0e9f

Please sign in to comment.