public static void SynchronizeTableWidthForEditing(IHTMLTable table) { var logicalWidth = TableHelper.GetTableLogicalEditingWidth(table); if (logicalWidth > 0 && logicalWidth.Units != PixelPercentUnits.Undefined) { table.width = logicalWidth.ToString(); } else { (table as IHTMLElement).removeAttribute("width", 0); } }
public static void SynchronizeTableWidthForEditing(IHTMLTable table) { int logicalWidth = TableHelper.GetTableLogicalEditingWidth(table); if (logicalWidth > 0) { table.width = logicalWidth; } else { (table as IHTMLElement).removeAttribute("width", 0); } }