Created by: peterjwest
This fixes two bugs in the tooltips plugin:
- The tooltip arrow orientation was chosen using the truthiness of the
delta.left
value returned bygetCalculatedOffset
, however there are cases when this value is 0, but the placement of the plugin is still top or bottom, which means the arrow should be positioned using theleft
property. This fix uses the existingplacement
variable (fixes #13696 (closed)) - If the page layout changes after the tooltip has been shown, the tooltip orientation could change, in which case the alternate CSS property was never reset (couldn't find an existing issue for this)