Reduce the popup size for entrycompletion if it does not fit in either direction.
Reduce the popup size for entrycompletion if it does not fit in either direction.

Shrink the popup until it fits in the direction with more space (this will break if
not even one row fits ...).
Also fix bug in the calculation of the available space where y was used instead of height
for the entry.


git-svn-id: 8793743235435e5f28e11b6ed3ba3b11163578f2@13491 50eb543b-83fa-0310-9bb7-f7cbbee4ab39

community-ssu/gtk,community-ssu/gtk,community-ssu/gtk,community-ssu/gtk,community-ssu/gtk