Skip to content

Commit fc63100

Browse files
Set height correctly in the translation layer
1 parent 33dadda commit fc63100

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Improvements:
88
- Overwrite the width/height if its computed value is `0px`
99
- Force the display of the container to be `block`, if it is not `block`, its height will be 0 and nothing will be shown
1010

11+
Bug fixes:
12+
- Set height correctly in the translation layer
13+
1114
1.0.6
1215
-----
1316

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function translationLayer(container, object, maxSize, innerWidthMultiplier) {
4141
container.style.maxWidth = maxSize + 'px';
4242
container.style.width = (100 * innerWidthMultiplier) + 'vw';
4343
container.style.maxHeight = maxSize + 'px';
44-
container.style.width = 100 * innerWidthMultiplier + 'vw';
44+
container.style.height = 100 * innerWidthMultiplier + 'vw';
4545

4646
return drawGraphics3d(container, object);
4747
}

0 commit comments

Comments
 (0)