v0.9.4: fixed WndTitledMessage titles not scaling in width with text

This commit is contained in:
Evan Debenham 2021-08-10 21:44:54 -04:00
parent 2005a164f5
commit 010add28da

View File

@ -57,6 +57,8 @@ public class WndTitledMessage extends Window {
&& text.bottom() > (PixelScene.MIN_HEIGHT_L - 10)
&& width < WIDTH_MAX){
width += 20;
titlebar.setRect(0, 0, width, 0);
text.setPos( titlebar.left(), titlebar.bottom() + 2*GAP );
text.maxWidth(width);
}