fix list of content ignoring right margin
fix wrong number of pages returned by getSize