Closed
Bug 1290086
Opened 8 years ago
Closed 8 years ago
Width of Inline Property Editor should be not shrink to tiny size
Categories
(DevTools :: Inspector, defect, P2)
Tracking
(firefox48 wontfix, firefox49 wontfix, firefox50 fixed, firefox51 verified)
VERIFIED
FIXED
Firefox 51
People
(Reporter: nachtigall, Assigned: jdescottes)
Details
Attachments
(4 files)
50.61 KB,
image/png
|
Details | |
58 bytes,
text/x-review-board-request
|
gl
:
review+
|
Details |
10.70 KB,
patch
|
jdescottes
:
review+
ritu
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
1.61 KB,
patch
|
Details | Diff | Splinter Review |
STR: I want to edit or select a css class name that a bit longer than usual: 1. Go to the example page that I prepared (this is a stripped down minimal page from a real world ecommerce system): http://codepen.io/nachtigall/full/yJEwZp/ 2. Search for class="woocommerce-MyAccount-navigation-link woocommerce-MyAccount-navigation-link--dashboard is-active" 3. Double click on this AR: The input box shrinks although there are no space constrains. This changes the context and I need to find where the string I was looking for went. Seems like the <input class="styleinspector-propertyeditor"> has a fixed width of 237px here, way to small value. ER: Have the edit input box the same size as when not edited. That is, big enough to view the whole class names. See screenshot.
Assignee | ||
Comment 1•8 years ago
|
||
Probably a regression from Bug 1143742. The autocomplete uses a hidden element to measure the size of its input. When using a single-line inplace editor, the measurement element is positioned in absolute and can be constrained by its container. We should either measure the size before hiding the reference element, or use a multiline inplace editor.
Assignee: nobody → jdescottes
status-firefox48:
--- → affected
status-firefox49:
--- → affected
Priority: -- → P2
Assignee | ||
Comment 2•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/69270/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/69270/
Assignee | ||
Comment 3•8 years ago
|
||
Comment on attachment 8777804 [details] Bug 1290086 - use multiline inplace editor for markupview autocompletes; Review request updated; see interdiff: https://reviewboard.mozilla.org/r/69270/diff/1-2/
Attachment #8777804 -
Attachment description: Bug 1290086 - use multiline inplace editor for markupview attributes → Bug 1290086 - use multiline inplace editor for markupview autocompletes
Assignee | ||
Comment 4•8 years ago
|
||
Comment on attachment 8777804 [details] Bug 1290086 - use multiline inplace editor for markupview autocompletes; Review request updated; see interdiff: https://reviewboard.mozilla.org/r/69270/diff/2-3/
Attachment #8777804 -
Attachment description: Bug 1290086 - use multiline inplace editor for markupview autocompletes → Bug 1290086 - use multiline inplace editor for markupview autocompletes;
Attachment #8777804 -
Flags: review?(gl)
Comment 5•8 years ago
|
||
mozreview-review |
Comment on attachment 8777804 [details] Bug 1290086 - use multiline inplace editor for markupview autocompletes; https://reviewboard.mozilla.org/r/69270/#review67040 ::: devtools/client/inspector/markup/test/browser_markup_tag_edit_long-classname.js:17 (Diff revision 3) > +const TEST_URL = `data:text/html;charset=utf8, <div class="${classname}"></div>`; > + > +add_task(function* () { > + let {inspector} = yield openInspectorForURL(TEST_URL); > + > + info("Select node and make sure it is focused"); Redundant info() considering it precedes selectNode()
Attachment #8777804 -
Flags: review?(gl) → review+
Assignee | ||
Comment 6•8 years ago
|
||
Thanks for the review! Try is green : https://treeherder.mozilla.org/#/jobs?repo=try&revision=dc84dcf5afaa. Landing.
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/fx-team/rev/46dede080ba1 use multiline inplace editor for markupview autocompletes;r=gl
Comment 8•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/46dede080ba1
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox51:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
Tested on Nightly 51. Verified fixed. Great. Thank you!
Status: RESOLVED → VERIFIED
Comment 10•8 years ago
|
||
Julian, maybe we want to uplift that to aurora?
Flags: needinfo?(jdescottes)
Assignee | ||
Comment 11•8 years ago
|
||
Sure! Here is a rebased version that can be applied on top of aurora. (no actual code change, except that the patch didn't apply cleanly, carrying over r+)
Flags: needinfo?(jdescottes)
Attachment #8783986 -
Flags: review+
Assignee | ||
Comment 12•8 years ago
|
||
Comment on attachment 8783986 [details] [diff] [review] bug1290086.aurora.patch Approval Request Comment [Feature/regressing bug #]:Bug 1143742 [User impact if declined]:bad user experience when editing long classnames in devtools [Describe test coverage new/current, TreeHerder]: new mochitest covering the regression : devtools/client/inspector/markup/test/browser_markup_tag_edit_long-classname.js, try https://treeherder.mozilla.org/#/jobs?repo=try&revision=b53124ece64c [Risks and why]: low risk. Has been on central for some time, covered by tests. The new code is updating the configuration of 3 autocomplete widgets to use a feature that landed in 48. [String/UUID change made/needed]:N/A
Attachment #8783986 -
Flags: approval-mozilla-aurora?
Comment on attachment 8783986 [details] [diff] [review] bug1290086.aurora.patch Fix was verified on Nightly, Aurora50+
Attachment #8783986 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 14•8 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-aurora/rev/40076409f9b5
Flags: in-testsuite+
Comment 15•8 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #14) > https://hg.mozilla.org/releases/mozilla-aurora/rev/40076409f9b5 There's a markup.js.rej in mozilla-beta right now from this cset.
Flags: needinfo?(ryanvm)
Assignee | ||
Comment 16•8 years ago
|
||
My bad, I didn't see the .rej was part of the changeset, sorry :( Here is a patch to remove it in case you want to cleanup beta. Approval Request Comment [Feature/regressing bug #]:N/A (follow up) [User impact if declined]: no user impact [Describe test coverage new/current, TreeHerder]:N/A [Risks and why]: removing a .rej committed by mistake. [String/UUID change made/needed]: N/A
Attachment #8797150 -
Flags: approval-mozilla-beta?
Comment 17•8 years ago
|
||
Comment on attachment 8797150 [details] [diff] [review] bug1290086.beta.followup.patch I'll land this a=NPOTB next time I'm pushing there.
Attachment #8797150 -
Flags: approval-mozilla-beta?
Updated•8 years ago
|
Flags: needinfo?(ryanvm)
Comment 18•8 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/6331567bfa91
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•