aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-03-28 04:33:04 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-03-28 04:33:04 +0800
commit9a8bf5a605738c49301c1ebe1793e2e3ebce61fc (patch)
tree6d39863c6a4e82df44145d88994d55059f36f82e
parentd6d85d28bbba9700ab9538403130873867dd7cfe (diff)
downloadtangerine-wallet-browser-9a8bf5a605738c49301c1ebe1793e2e3ebce61fc.tar
tangerine-wallet-browser-9a8bf5a605738c49301c1ebe1793e2e3ebce61fc.tar.gz
tangerine-wallet-browser-9a8bf5a605738c49301c1ebe1793e2e3ebce61fc.tar.bz2
tangerine-wallet-browser-9a8bf5a605738c49301c1ebe1793e2e3ebce61fc.tar.lz
tangerine-wallet-browser-9a8bf5a605738c49301c1ebe1793e2e3ebce61fc.tar.xz
tangerine-wallet-browser-9a8bf5a605738c49301c1ebe1793e2e3ebce61fc.tar.zst
tangerine-wallet-browser-9a8bf5a605738c49301c1ebe1793e2e3ebce61fc.zip
Fix edge case where notice does not require scrollbar.
-rw-r--r--ui/app/components/notice.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/app/components/notice.js b/ui/app/components/notice.js
index 8a953a6b5..b85787033 100644
--- a/ui/app/components/notice.js
+++ b/ui/app/components/notice.js
@@ -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 () {