Skip to content

Commit

Permalink
fix: popup render issue in Chrome on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Apr 4, 2018
1 parent b4a1688 commit 6fdb91e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions add-on/src/popup/browser-action/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ module.exports = (state, emitter) => {
}
}
})
// fix for https://github.com/ipfs-shipyard/ipfs-companion/issues/318
setTimeout(() => {
document.body.style.height = window.innerHeight + 1 + 'px'
setTimeout(function () {
// final render that should fix macOS UI issues
requestAnimationFrame(() => {
document.body.style.removeProperty('height')
emitter.emit('render')
})
}, 100)
}, 200)
})

emitter.on('copyPublicGwAddr', async function copyCurrentPublicGwAddress () {
Expand Down

0 comments on commit 6fdb91e

Please sign in to comment.