Skip to content

Commit 2baf32c

Browse files
committed
fix: On FF, Feedy didn't collapse well at startup
1 parent e7dfffa commit 2baf32c

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/Components/Feedy.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,15 @@ class Feedy extends Component {
4545
* Display or hide Feedy
4646
*/
4747
refreshVisibility() {
48-
if (this.props.visible) {
49-
ReactDom.findDOMNode(this).style.bottom = 0;
50-
}
51-
else {
52-
ReactDom.findDOMNode(this).style.bottom = `${-this.getInnerHeight()}px`;
53-
}
48+
setTimeout(function() {
49+
if (this.props.visible) {
50+
ReactDom.findDOMNode(this).style.bottom = 0;
51+
}
52+
else {
53+
54+
ReactDom.findDOMNode(this).style.bottom = `${-this.getInnerHeight()}px`;
55+
}
56+
}.bind(this), 100); // delay for FF
5457
}
5558

5659
getInnerHeight() {

0 commit comments

Comments
 (0)