1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00

Fix edge case where notice does not require scrollbar.

This commit is contained in:
Kevin Serrano 2017-03-27 16:33:04 -04:00
parent d6d85d28bb
commit 9a8bf5a605
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1

View File

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