{hero}

bubblePosition()

Since: Editor 1.3

Reposition an editing bubble when it is visible.
Please note - this property requires the Editor extension for DataTables.

The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please , alternatively an Editor license can be purchased on this site, or sign up for the free trial.

Description

When bubble() is called, it will automatically position the editing bubble above the elements to which the edit is attached (by calling this method internally!), however, if your document changes, for example inserting another element, the position of the cells to be edited might move, which would leave the bubble looking 'disconnected' if its position was not updated. This method provides that ability.

Note that Editor will automatically call this method when the window is resized, in order to keep the bubble attached to its host elements.