Browse Source

Fix width only being set for standalone media

closed-social-glitch-2
Thibaut Girka 6 years ago
parent
commit
d0b2f71501
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/flavours/glitch/components/media_gallery.js

+ 1
- 1
app/javascript/flavours/glitch/components/media_gallery.js View File

@ -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,

Loading…
Cancel
Save