mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-24 00:09:31 +02:00
Solution to the tests
This commit is contained in:
parent
776f2cc209
commit
51c01f13f2
@ -83,8 +83,10 @@ export default class RenameFormUiHandler extends FormModalUiHandler {
|
||||
fontSize: "80px",
|
||||
});
|
||||
helpEmojiListText.setWordWrapWidth(890);
|
||||
const height = ((Math.min((helpEmojiListText.getWrappedText(helpEmojiListText.text)).length, 99)) * (80 + helpEmojiListText.y) * scale) + helpEmojiListText.y;
|
||||
helpEmojiListBg.setSize(helpEmojiListBg.width, height);
|
||||
if (this.scene.game.renderer.type === Phaser.WEBGL) { // TODO: this bang is correct? With this the tests do not fail
|
||||
const height = ((Math.min((helpEmojiListText.getWrappedText(helpEmojiListText.text)).length, 99)) * (80 + helpEmojiListText.y) * scale) + helpEmojiListText.y;
|
||||
helpEmojiListBg.setSize(helpEmojiListBg.width, height);
|
||||
}
|
||||
|
||||
helpEmojiListContainer.add(helpEmojiListText);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user