tooltip misplacement with top auto and bottom auto fixes

fixes #14756

Fixed [jsbin](http://jsbin.com/koqilu/71/edit)