Reproduction steps:
1. Open the “DialogHeightIssue“ project and open the “Main” scene
2. Select the “Dialog“ GameObject and observe the Inspector
3. Click “Normal Dialog”, observe the opened dialog and close it
4. Click “Test Dialog” and close the opened dialog
5. Click “Normal Dialog” and observe the opened dialog
Expected result: The dialog’s height is correct for its contents
Actual result: The dialog uses the previous dialog’s height resulting in additional empty rows
Reproduced in: 2020.3.0f1, 2020.3.37f1, 2021.3.6f1, 2022.1.10f1, 2022.2.0b2, 2023.1.0a4
Reproduced on: macOS Monterey 12.0.1
Not reproduced on: Windows 11