v0.9.4: fixed WndTitledMessage titles not scaling in width with text
This commit is contained in:
parent
2005a164f5
commit
010add28da
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user