Fix edge case where notice does not require scrollbar.

feature/default_network_editable
Kevin Serrano 8 years ago
parent d6d85d28bb
commit 9a8bf5a605
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
  1. 3
      ui/app/components/notice.js

@ -92,6 +92,7 @@ Notice.prototype.render = function () {
}, },
}, [ }, [
h(ReactMarkdown, { h(ReactMarkdown, {
className: 'notice-box',
source: body, source: body,
skipHtml: true, skipHtml: true,
}), }),
@ -114,6 +115,8 @@ Notice.prototype.render = function () {
Notice.prototype.componentDidMount = function () { Notice.prototype.componentDidMount = function () {
var node = findDOMNode(this) var node = findDOMNode(this)
linker.setupListener(node) linker.setupListener(node)
if (document.getElementsByClassName('notice-box')[0].clientHeight < 310) { this.setState({disclaimerDisabled: false}) }
} }
Notice.prototype.componentWillUnmount = function () { Notice.prototype.componentWillUnmount = function () {

Loading…
Cancel
Save