Fixed: set mode from pin to bottom when the space below it less than the height of the floatingspace.
Fixed: pin the space when editable is out of sight.
Improved: set mode to bottom if possible, e.g. when there's enough space below editable and the space is floating.