gecko-dev/devtools
Nicolas Chevobbe 6f0d1ac596 Bug 1484979 - Fix old-jsterm UI glitches; r=bgrins.
The completion node was wrongly positioned as soon as the input overflowed.
We fix this by setting the completionNode height in resizeInput,
like we do for the inputNode.

The inputNode takes the whole remaining vertical space
when starting the console. But when typing, the height
is computed and set according to what's in the input.
Which means the input wasn't taking the remaining space
anymore, which could be weird (e.g. if the user wants
to select some text by starting dragging below the actual
input, although the UI would indicate it is possible).

The autocompletionPopup was a bit off due to 2 things:
- in the function that was returning the chevronWidth, we
were subtracting the autocomplete popup padding. But the
autocomplete popup already handles that itself.
- in the function that was computing the character width,
we were using offsetWidth which returned a rounded value.
This means that the further the autocompletion was displayed
at, the more the popup would be off. We use getBoundingClientRect().width
instead which gives us a decimal value.

And we also make sure to not alter the scrolling position in the inputNode
when accepting an autocompletion result (a test is added).

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

--HG--
extra : moz-landing-system : lando
2018-08-29 05:41:52 +00:00
..
client Bug 1484979 - Fix old-jsterm UI glitches; r=bgrins. 2018-08-29 05:41:52 +00:00
docs Bug 1483817 - Font Inspector telemetry needs more granular OS versioning r=gl 2018-08-23 19:48:17 +00:00
platform
server Merge inbound to mozilla-central. a=merge 2018-08-29 12:43:37 +03:00
shared Merge inbound to mozilla-central. a=merge 2018-08-29 12:43:37 +03:00
startup Bug 1435429 - Android 'mach mochitest' fails: 'A cross-directory support file path noted in a test manifest does not appear in any other manifest.' r=bc,chmanchester 2018-08-28 20:29:58 +00:00
.eslintrc.js Bug 1471540 - Make DevTools code compatible with new eslint-plugin-react;r=standard8 2018-07-20 14:26:45 +02:00
.eslintrc.mochitests.js Bug 1443661 - Enable ESLint rule no-undef for test files in devtools/client/webconsole/new-console-output/. r=nchevobbe 2018-03-06 22:50:58 +00:00
.eslintrc.xpcshell.js Bug 1443661 - Enable ESLint rule no-undef for test files in devtools/client/webconsole/new-console-output/. r=nchevobbe 2018-03-06 22:50:58 +00:00
CODE_OF_CONDUCT.md
moz.build Bug 1469872 - update bugzilla products and components in moz.build files: devtools. r=nalexander 2018-06-20 21:34:40 +03:00
templates.mozbuild