Add a debug log statement with the dimensions of the text container size when it's updated to help troubleshoot layout issues. Also rename a variable for clarity.