[Bug 47925] Panel in dialog incorrectly drawn