Fix layout issues relating to fraction pixel widths when using percentages