Make the XournalWidget react to screen size change

If the screen is rotated the layout needs to be recalculated
to set the correct margins if additional space is provided.