Fixed 'Bug 10848 - GetIdealSize can lock up the gui thread '.