Fix the issue that GetHeightForWidth returns wrong height after calling GetTextDirection
Fix the issue that GetHeightForWidth returns wrong height after calling GetTextDirection

Change-Id: If60c7bc18be5d8b7083e70b362c2f69a32a42df8

dalihub/dali-toolkit,dalihub/dali-toolkit,dalihub/dali-toolkit,dalihub/dali-toolkit