Skip to content

Commit b562917

Browse files
committed
Fix fixedWidth, fixedHeight assignment issue
1 parent 3c75872 commit b562917

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/gameobjects/text/static/Text.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,11 +1127,19 @@ var Text = new Class({
11271127
{
11281128
this.width = w;
11291129
}
1130+
else
1131+
{
1132+
this.width = style.fixedWidth;
1133+
}
11301134

11311135
if (style.fixedHeight === 0)
11321136
{
11331137
this.height = h;
11341138
}
1139+
else
1140+
{
1141+
this.height = style.fixedHeight;
1142+
}
11351143

11361144
this.updateDisplayOrigin();
11371145

0 commit comments

Comments
 (0)