// 重新计算大小和位置 void Resize(Row startRow) { var node = startRow.firstData; if (node == null) { var row = startRow.previous; if (row == null) { node = mFirst; } else if (row.lastData == null) { node = null; } else { node = row.lastData.next; } } startRow.firstData = null; startRow.lastData = null; while (node != null) { if (!startRow.AppendNode(node, m_Space.x)) { startRow.Reposition(mHOffset, mVOffset, m_Space); startRow.SetVisible(this, true, true); startRow = startRow.AppendLine(); } else { node = node.next; } } startRow.Reposition(mHOffset, mVOffset, m_Space); startRow.SetVisible(this, true, true); mLastRow = startRow; SetDirty(); }