Fix width only being set for standalone media

lolsob-rspec
Thibaut Girka 2018-05-21 18:25:41 +02:00
parent df3fa2cb78
commit 3315877afe
1 changed files with 1 additions and 1 deletions

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,