Fix measurement for dialog windows that do not have fixed width

Bug 6456773

Change-Id: I9d058f78c4b1c1759aaea2f215efee82a3489faa
1 file changed