results.webkit.org: Fix tooltip with drawer
authorjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Oct 2019 03:14:44 +0000 (03:14 +0000)
committerjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 Oct 2019 03:14:44 +0000 (03:14 +0000)
commit92a233ec462745ed9363944eef36203b74c9c30e
treeb62c823e7a6ece0c3e2ca3e2969eeeb3a44986ea
parent538be5deccf1adfb7d6518b5e90547ef5a2ebe07
results.webkit.org: Fix tooltip with drawer
https://bugs.webkit.org/show_bug.cgi?id=203527

Rubber-stamped by Aakash Jain.

The interaction between tooltips and drawers needs improvement, tooltips
are inconsistently under the drawer, do not treat the drawer as a boundary.

* resultsdbpy/resultsdbpy/view/static/css/tooltip.css:
(.tooltip): Use topZIndex variable.
* resultsdbpy/resultsdbpy/view/static/js/timeline.js:
(xAxisFromScale): Pass viewport to ToolTip.
(TimelineFromEndpoint): Ditto.
(TimelineFromEndpoint.prototype.update): Ditto.
(TimelineFromEndpoint.prototype.render): Ditto.
(TimelineFromEndpoint.prototype.render.onDotEnterFactory): Ditto.
* resultsdbpy/resultsdbpy/view/static/js/tooltip.js:
(_ToolTip.prototype.toString): Use passed viewport instead of the document size.
(_ToolTip.prototype.setByElement): Set the viewport based on the passed viewport.
* resultsdbpy/resultsdbpy/view/templates/search.html: Define the viewport as the
content element.
* resultsdbpy/resultsdbpy/view/templates/suite_results.html: Ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@251763 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/resultsdbpy/resultsdbpy/view/static/css/tooltip.css
Tools/resultsdbpy/resultsdbpy/view/static/js/timeline.js
Tools/resultsdbpy/resultsdbpy/view/static/js/tooltip.js
Tools/resultsdbpy/resultsdbpy/view/templates/search.html
Tools/resultsdbpy/resultsdbpy/view/templates/suite_results.html