internal static void AdjustFloatedTableLayoutBox(TableRenderer tableRenderer, Rectangle layoutBox, float tableWidth , IList <Rectangle> floatRendererAreas, FloatPropertyValue?floatPropertyValue) { tableRenderer.SetProperty(Property.HORIZONTAL_ALIGNMENT, null); UnitValue[] margins = tableRenderer.GetMargins(); if (!margins[1].IsPointValue()) { ILog logger = LogManager.GetLogger(typeof(iText.Layout.Renderer.FloatingHelper)); logger.Error(MessageFormatUtil.Format(iText.IO.LogMessageConstant.PROPERTY_IN_PERCENTS_NOT_SUPPORTED, Property .MARGIN_RIGHT)); } if (!margins[3].IsPointValue()) { ILog logger = LogManager.GetLogger(typeof(iText.Layout.Renderer.FloatingHelper)); logger.Error(MessageFormatUtil.Format(iText.IO.LogMessageConstant.PROPERTY_IN_PERCENTS_NOT_SUPPORTED, Property .MARGIN_LEFT)); } AdjustBlockAreaAccordingToFloatRenderers(floatRendererAreas, layoutBox, tableWidth + margins[1].GetValue() + margins[3].GetValue(), FloatPropertyValue.LEFT.Equals(floatPropertyValue)); }