Commit Graph

11 Commits

Author SHA1 Message Date
Julian Descottes
f15a7e16e5 Bug 1568250 - Fix HTML tooltip auto height calculation r=miker,Maliha
The current auto height and auto width tests were not asserting the proper element.

Differential Revision: https://phabricator.services.mozilla.com/D39102

--HG--
extra : moz-landing-system : lando
2019-07-24 11:49:32 +00:00
Victor Porof
f6db0ee557 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884

--HG--
extra : source : 60e4496cf9699dc59f2f4738cb60f87cbdb01e67
2019-07-05 11:24:38 +02:00
Mantaroh Yoshinaga
495837c33c Bug 1472942 - Part 2. Add setContentSize() instead of setContent() in HTMLTooltip. r=birtles
This patch will remove setContest(), and change the following things instead of this:

 * Use HTMLTooltip.panel.appendChild() instead of HTMLTooltip.setContent().
 * Add HTMLTooltip.setContetnSize() to specify the panel size if need this.

Differential Revision: https://phabricator.services.mozilla.com/D7044

--HG--
extra : moz-landing-system : lando
2018-09-27 07:14:55 +00:00
Julian Descottes
640fe52298 Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4

--HG--
extra : rebase_source : 65de1b0aba412d9044b5196115f74276caa058f2
2018-06-01 12:36:09 +02:00
Alexandre Poirot
bcf6facc3c Bug 1440321 - Convert Task.jsm to async/await in devtools/client. r=jryans
MozReview-Commit-ID: HaGOC5cn3JD
2018-03-12 19:46:35 -05:00
Yoshi Huang
7363e22f81 Bug 1377523 - Part 4: fix devtools/client/shared/test. r=pbro
Move data: URIs in devtools/client/shared/test to seperate files.


--HG--
rename : devtools/client/shared/test/browser_layoutHelpers-getBoxQuads.html => devtools/client/shared/test/doc_layoutHelpers-getBoxQuads.html
rename : devtools/client/shared/test/browser_layoutHelpers.html => devtools/client/shared/test/doc_layoutHelpers.html
rename : devtools/client/shared/test/html-mdn-css-basic-testing.html => devtools/client/shared/test/doc_mdn-css-basic-testing.html
rename : devtools/client/shared/test/html-mdn-css-no-summary-or-syntax.html => devtools/client/shared/test/doc_mdn-css-no-summary-or-syntax.html
rename : devtools/client/shared/test/html-mdn-css-no-summary.html => devtools/client/shared/test/doc_mdn-css-no-summary.html
rename : devtools/client/shared/test/html-mdn-css-no-syntax.html => devtools/client/shared/test/doc_mdn-css-no-syntax.html
rename : devtools/client/shared/test/html-mdn-css-syntax-old-style.html => devtools/client/shared/test/doc_mdn-css-syntax-old-style.html
rename : devtools/client/shared/test/browser_templater_basic.html => devtools/client/shared/test/doc_templater_basic.html
rename : devtools/client/shared/test/browser_toolbar_basic.html => devtools/client/shared/test/doc_toolbar_basic.html
2017-07-13 12:27:52 +08:00
Gabriel Luong
445a55675b Bug 1307481 - Part 3: HTMLTooltip should receive the document that it should be attached to instead of the toolbox r=jdescottes 2016-10-08 09:49:07 -04:00
Gabriel Luong
badbea5392 Bug 1307481 - Part 1: Move Tooltip.js and HTMLTooltip.js into widgets/tooltip/ r=jdescottes
--HG--
rename : devtools/client/shared/widgets/HTMLTooltip.js => devtools/client/shared/widgets/tooltip/HTMLTooltip.js
rename : devtools/client/shared/widgets/Tooltip.js => devtools/client/shared/widgets/tooltip/Tooltip.js
2016-10-04 22:48:49 -04:00
Julian Descottes
d367c125c7 Bug 1267403 - HTMLTooltip tests: destroy tooltips at the end of tests;r=ochameau
MozReview-Commit-ID: 2jMKxlsWId2

--HG--
extra : source : 806822ced9a2a28b81a66180e25d2d204227a08b
extra : histedit_source : fc3122c6d332db121bedf494553bc9d6797babfc
2016-07-04 16:02:37 +02:00
Julian Descottes
3aa417586a Bug 1267403 - HTMLTooltip: add useXulWrapper option when displayed in a XUL document;r=ochameau
The HTMLTooltip supports an additional configuration parameter "useXulWrapper".
When set to true, if the tooltip is displayed in a XUL document, a XUL panel
will be used as an additional container for the tooltip.

This allows the tooltip to be displayed anywhere on the screen and can be
useful when displayed in small toolboxes.

MozReview-Commit-ID: 63kv4vAeW5R

--HG--
extra : source : fc4d902ff01ee92a5b6742d44286e5feaaba1500
extra : intermediate-source : 126f43ff3be5505920946a77ad82401c6bbaebef
extra : histedit_source : 863888c014723f7e95742079395497ba1a30aa36%2C13ba9aaf80acb96c587739c767c20a8f0f6a9a5a
2016-07-06 14:50:44 +02:00
Julian Descottes
fa6cf14cb1 Bug 1266456 - part5: HTMLTooltip setContent() support "auto" width parameter;r=bgrins
The autocomplete popup defines its width by finding the longest label
to display and then applying a "width:Xch" to its content, where X is
the length of the longest label + 3.

In order to support this, the HTMLTooltip setContent() methods allows to
use width: "auto" (which also becomes the default value). In this case,
the HTMLTooltip show() method will automatically compute the preferred
width for the tooltip. It will first calculate the tooltip height, then
measure the width of the tooltip for this computed height and use it as
the preferred width.

MozReview-Commit-ID: KDxZNB3KDdR

--HG--
extra : rebase_source : 8ceedd73434551050f8d63cbf03d66870e275b03
2016-06-23 17:30:50 +02:00