Created by: peterjwest
This fixes two bugs in the tooltips plugin:
- The tooltip arrow orientation was chosen using the truthiness of the
delta.leftvalue 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 theleftproperty. This fix uses the existingplacementvariable (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)