Fix size hint bug in relayout.

Fix bug in wx layout timer.