fixed a bug in wx_LayoutAlgorithm.LayoutWindow