Fix resizable conflict (#483)

This commit is contained in:
Renan
2020-10-06 14:13:31 +01:00
committed by GitHub
parent 05510cdc2b
commit 47aba31eff
13 changed files with 48 additions and 52 deletions

View File

@ -148,7 +148,7 @@ class TextBoxComponent extends PositionComponent with Resizable {
Future<Image> _redrawCache() {
final PictureRecorder recorder = PictureRecorder();
final Canvas c = Canvas(recorder, size.toRect());
final Canvas c = Canvas(recorder, gameSize.toRect());
_fullRender(c);
return recorder.endRecording().toImage(width.toInt(), height.toInt());
}