private Element GetMiddleRow() { if (middleRow == null) { middleRow = Browser.Document.CreateElement("tr"); if (topRow != null) middleRow.InsertAfter(topRow); else Node.Prepend(middleRow); if (Spacing != 0 && topRow != null) { topCellContent.Style.PaddingBottom = Spacing + "px"; } } return middleRow; }
private Element GetCenterCell() { if (centerCell == null) { centerCell = Browser.Document.CreateElement("td"); centerCell.Style.Height = "100%"; centerCell.Style.Width = "100%"; AdjustColSpan(); if (leftCell != null) centerCell.InsertAfter(leftCell); else GetMiddleRow().Prepend(centerCell); centerCellContent = Browser.Document.CreateElement("div"); centerCellContent.Style.Width = "100%"; centerCellContent.Style.Height = "100%"; centerCell.AppendChild(centerCellContent); } return centerCellContent; }