v2.0.2: fixed a rounding error in rendered text block
This commit is contained in:
@@ -237,7 +237,7 @@ public class RenderedTextBlock extends Component {
|
||||
j++;
|
||||
}
|
||||
|
||||
if ((x - this.x) + fullWidth > maxWidth && !curLine.isEmpty()){
|
||||
if ((x - this.x) + fullWidth - 0.001f > maxWidth && !curLine.isEmpty()){
|
||||
y += height+2f;
|
||||
x = this.x;
|
||||
nLines++;
|
||||
|
||||
Reference in New Issue
Block a user