Closed
Bug 1431236
Opened 7 years ago
Closed 7 years ago
Grid / Flex highlighter icons in Rule View don't work with 3 Pane mode
Categories
(DevTools :: Inspector: Rules, enhancement, P2)
DevTools
Inspector: Rules
Tracking
(firefox59 fixed)
RESOLVED
FIXED
Firefox 59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: jryans, Assigned: jryans)
References
(Blocks 1 open bug)
Details
(Whiteboard: [designer-tools])
Attachments
(1 file)
If you flip the prefs to enable 3 pane inspector (bug 1369945), then the Rule View icons to toggle grid / flex highlighters (the ones that appear next `display: grid` etc.) stop working.
When 3 pane is enabled, clicking the icons enters the property editor for the `grid` value, instead of toggling highlighters.
I am guessing there's some event handler that's not wired up quite right in 3 pane mode...
Comment 1•7 years ago
|
||
Oh yes, I know this one. I think I forgot to add one of changes to the bug 1369945 patch.
We need to change the way we handle the click events in the sidebar when checking if it is the rule view.
If we are in the split rule view, we need to do target.closest("<rule view container selector>") to see if we are in the rule view.
https://searchfox.org/mozilla-central/source/devtools/client/inspector/shared/highlighters-overlay.js#76
Assignee | ||
Updated•7 years ago
|
Whiteboard: [designer-tools]
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → jryans
Status: NEW → ASSIGNED
Priority: -- → P2
Comment hidden (mozreview-request) |
Assignee | ||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8943833 [details]
Bug 1431236 - Update grid / flex toggles for 3 pane.
https://reviewboard.mozilla.org/r/214212/#review219918
Good catch on the getNodeInfo
::: devtools/client/inspector/shared/highlighters-overlay.js:75
(Diff revision 1)
> this.inspector.target.on("will-navigate", this.onWillNavigate);
>
> EventEmitter.decorate(this);
> }
>
> - get isRuleView() {
> + isRuleView(node) {
Add a JSDoc for this.
::: devtools/client/inspector/shared/highlighters-overlay.js:799
(Diff revision 1)
> // Only one highlighter can be displayed at a time, hide the currently shown.
> this._hideHoveredHighlighter();
>
> this._lastHovered = event.target;
>
> - let view = this.isRuleView ?
> + let view = this.isRuleView(event.target) ?
s/event.target/this._lastHovered
Attachment #8943833 -
Flags: review?(gl) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Comment 6•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8943833 [details]
Bug 1431236 - Update grid / flex toggles for 3 pane.
https://reviewboard.mozilla.org/r/214212/#review219918
> Add a JSDoc for this.
Okay, added.
> s/event.target/this._lastHovered
Changed.
Pushed by jryans@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/0f66c51df9f4
Update grid / flex toggles for 3 pane. r=gl
Comment 8•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•