Adds measurements to find space on page margins
Merge remote-tracking branch 'origin/dev' into dynamic-pane-location
Merge remote-tracking branch 'origin/dev' into dynamic-pane-location
Checks if there's space for pane on the right

If there's no space to the right, pane is placed at the bottom
Enforces minimum frame height

Before, if a selected word were close enough to the bottom of the page,
the frame would have a height close to 0