Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
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);
            }
        }