Browser: Legend and inspector overflow with toggle

* Adding new directive to figure out overflow status.
* Checks whenever parent().width() changes.
* Add 'update-ui' attribute to directive to trigger update.
* Make inspector find the height on hover and click.