diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-05-21 18:25:41 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-05-21 18:25:41 +0200 |
commit | d0b2f71501c778a4b1ef8bc37c6020f70b65a67e (patch) | |
tree | ad5d46b43f09d2a1f38b77919f9dd182345b8a7c | |
parent | 3ad3cee44cce2fe080636999b1b640c9558e5f53 (diff) |
Fix width only being set for standalone media
-rw-r--r-- | app/javascript/flavours/glitch/components/media_gallery.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/components/media_gallery.js b/app/javascript/flavours/glitch/components/media_gallery.js index 5d9c4cbca..d90f9bdb4 100644 --- a/app/javascript/flavours/glitch/components/media_gallery.js +++ b/app/javascript/flavours/glitch/components/media_gallery.js @@ -236,7 +236,7 @@ export default class MediaGallery extends React.PureComponent { } handleRef = (node) => { - if (node && this.isStandaloneEligible()) { + if (node /*&& this.isStandaloneEligible()*/) { // offsetWidth triggers a layout, so only calculate when we need to this.setState({ width: node.offsetWidth, |