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