Skip to content

Commit bbb0f39

Browse files
Fix quadPanelEl geometry width to take the texture width and not the height when width property is kept at 0 (#5723)
1 parent e912e4f commit bbb0f39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/layer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export var Component = registerComponent('layer', {
335335
quadPanelEl.setAttribute('geometry', {
336336
primitive: 'plane',
337337
height: this.data.height || this.texture.image.height / 1000,
338-
width: this.data.width || this.texture.image.height / 1000
338+
width: this.data.width || this.texture.image.width / 1000
339339
});
340340
},
341341

0 commit comments

Comments
 (0)