Update toolbar to fix positioning, overflow
Update toolbar to fix positioning, overflow

1. Fix issue where tooltip is positioned wrong if the selection is wider than the tooltip
2. Made tooltip not overflow left edge of viewport

![1-old](https://user-images.githubusercontent.com/2937410/50388207-68049c00-06c4-11e9-95aa-5d52670c9f3a.png)
![1-new](https://user-images.githubusercontent.com/2937410/50388208-68049c00-06c4-11e9-9d58-c3140c982282.png)
![2-old](https://user-images.githubusercontent.com/2937410/50388209-68049c00-06c4-11e9-8e90-ad6ffa31097c.png)
![2-new](https://user-images.githubusercontent.com/2937410/50388210-689d3280-06c4-11e9-807e-ecf13f8e1d57.png)
brijeshb42/medium-draft,brijeshb42/medium-draft