@Test public void resolveCellWidth20of80() throws IOException { table.getAttributes().put(HTML.Attribute.WIDTH, "80%"); cell.getAttributes().put(HTML.Attribute.WIDTH, "20%"); assertEquals(0.8f*config.getPageSize().getWidth()*0.2f, calc.getWidth(cell, config.getRootTags(), config.getPageSize().getWidth()),0.01f); }
public float getWidth(final Tag tag, final List<String> roottags, final float pagewidth){ return getWidth(tag, roottags, pagewidth, -1); }
WidthCalculator { public float getWidth(final Tag tag, final List<String> roottags, final float pagewidth){ return getWidth(tag, roottags, pagewidth, -1); } }
WidthCalculator { public float getWidth(final Tag tag, final List<String> roottags, final float pagewidth){ return getWidth(tag, roottags, pagewidth, -1); }  }
WidthCalculator { public float getWidth(final Tag tag, final List<String> roottags, final float pagewidth){ return getWidth(tag, roottags, pagewidth, -1); }  float getWidth(final Tag tag, final List<String> roottags, final float pagewidth); float getWidth(final Tag tag, final List<String> roottags, final float pagewidth, final float initialTotalWidth); }
WidthCalculator { public float getWidth(final Tag tag, final List<String> roottags, final float pagewidth){ return getWidth(tag, roottags, pagewidth, -1); }  float getWidth(final Tag tag, final List<String> roottags, final float pagewidth); float getWidth(final Tag tag, final List<String> roottags, final float pagewidth, final float initialTotalWidth);  }