• Benoît Knecht's avatar
    Revert commit ce6e7351 · f5b02a97
    Benoît Knecht authored and Sebastian Ramacher's avatar Sebastian Ramacher committed
    This wasn't correct. Padding is already accounted for:
      scale = (width - (pages_per_row - 1) * padding) /
              (pages_per_row * cell_width)
    If you add padding on the denominator, you end up with black margins on
    the sides of the window, which isn't what padding is for (i.e. insert a
    gap between rendered pages), and defeats the purpose of a "best-fit".
    Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>