Closed Bug 913014 Opened 11 years ago Closed 11 years ago

Nodes in the inspector's computed style view are hard to expand collapse.

Categories

(DevTools :: Inspector, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 27

People

(Reporter: pbro, Assigned: pbro)

References

Details

Attachments

(1 file, 2 obsolete files)

Bug 855523 was used to re-work the markup view in a way that nodes would be easily expanded and collapsed. This bug should bring the same to the computed styles view. This view has no edition capabilities, so the expand/collapse functionality can easily be expanded to the whole row instead of being limited to the twisty icon.
Assignee: nobody → pbrosset
In order to work like the markup view does, I propose to keep the single click toggling on the twisty icon, and add a double click toggling on the rest of the style container.
Attached patch 913014-computed-view-toggle.patch (obsolete) (deleted) — Splinter Review
Work in progress. Missing a test for the dblclick, which I can't get to work. Heather, would you mind taking a look and let me know what I'm doing wrong with the EventUtils lib? Thanks.
Attachment #800760 - Flags: feedback?(fayearthur)
Blocks: 835808
Attached patch 913014-computed-view-toggle.patch (obsolete) (deleted) — Splinter Review
I managed to make the double click test working. So attaching a new patch, rebased, ready for review.
Attachment #800760 - Attachment is obsolete: true
Attachment #800760 - Flags: feedback?(fayearthur)
Attachment #802261 - Flags: review?(fayearthur)
Patrick, I'm trying out this patch, and clicking the row doesn't seem to expand it. Is that functionality in this patch?
See comment 1, this bug aims at bringing the same level of functionality as the markup view does, that is: - single click on twisty - double click on the container itself. So you should try to double click instead. Cheers
Comment on attachment 802261 [details] [diff] [review] 913014-computed-view-toggle.patch Review of attachment 802261 [details] [diff] [review]: ----------------------------------------------------------------- Aha, sorry. This looks good, thanks!
Attachment #802261 - Flags: review?(fayearthur) → review+
Thanks Heather for the review. This patch is a week old and will need some merging with bug 835808 when it lands, so I'll hold it for now and rebase/merge and re-attach the patch when done.
Attaching a new version of the patch: - Merged with 835808 that landed in fx-team a couple of days ago. - Rebased with the latest fx-team.
Attachment #802261 - Attachment is obsolete: true
Pushed to TRY once more for good measure: https://tbpl.mozilla.org/?tree=Try&rev=9c161d2b7891
TRY all green!
Keywords: checkin-needed
Flags: in-testsuite+
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 27
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: