about summary refs log tree commit diff
path: root/app/javascript/flavours
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-05-21 18:25:41 +0200
committerThibaut Girka <thib@sitedethib.com>2018-05-21 18:25:41 +0200
commitd0b2f71501c778a4b1ef8bc37c6020f70b65a67e (patch)
treead5d46b43f09d2a1f38b77919f9dd182345b8a7c /app/javascript/flavours
parent3ad3cee44cce2fe080636999b1b640c9558e5f53 (diff)
Fix width only being set for standalone media
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r--app/javascript/flavours/glitch/components/media_gallery.js2
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,