Skip to content

Commit 3ef9d8d

Browse files
Merge pull request #2792 from Vwing/fix-overlapping-text
Fix for overlapping text in some books
2 parents f689902 + 4acb440 commit 3ef9d8d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Assets/Scripts/Game/UserInterfaceWindows/DaggerfallBookReaderWindow.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ void LayoutBookLabels()
318318
foreach (TextLabel label in bookLabels)
319319
{
320320
label.Position = new Vector2(x, y);
321+
label.Parent = pagePanel; // Establish parent scale before measuring wrapped text.
321322
label.MaxWidth = (int)pagePanel.Size.x;
322323
label.RectRestrictedRenderArea = pagePanel.RectRestrictedRenderArea;
323324
label.RestrictedRenderAreaCoordinateType = TextLabel.RestrictedRenderArea_CoordinateType.ParentCoordinates;

0 commit comments

Comments
 (0)