michmech / xonomy

A schema-driven XML editor for the web.
MIT License
91 stars 32 forks source link

Make bubble placement more robust in case of a limited vertical space #8

Closed filodej closed 7 years ago

filodej commented 7 years ago

There are cases when vertical space is limited (e.g. if editor is placed in an iframe). In such cases the current bubble placement algorithm is sub-optimal - it can place the bubble outside the window even if it is not necessary.

The new algorithm checks the borders and tries to place the bubble as follows:

michmech commented 7 years ago

Bubble placement has been bugging me for a long time. Let's hope this makes it better.