v0.2.4: fixed a bug from 1.7.5 source with icon titles (should not assume they are on the top of the window)

This commit is contained in:
Evan Debenham 2015-02-23 01:43:29 -05:00
parent d27adb3ec7
commit c99f02bf66

View File

@ -90,7 +90,7 @@ public class IconTitle extends Component {
health.setRect( tfLabel.x, Math.max( tfLabel.y + tfLabel.height(), imIcon.y + imIcon.height() - health.height() ), tfLabel.maxWidth, 0 );
height = health.bottom();
} else {
height = Math.max( imIcon.y + imIcon.height(), tfLabel.y + tfLabel.height() );
height = Math.max( imIcon.height(), tfLabel.height() );
}
}