Closed Bug 700770 Opened 13 years ago Closed 13 years ago

Style Inspector's Rule View can't scroll vertically

Categories

(DevTools :: General, defect, P2)

defect

Tracking

(firefox10+ verified)

RESOLVED FIXED
Firefox 11
Tracking Status
firefox10 + verified

People

(Reporter: jose.fandos, Assigned: miker)

References

Details

(Keywords: verified-beta, Whiteboard: [styleinspector][ruleview][qa+][qa!:10])

Attachments

(2 files, 1 obsolete file)

1. On this page, right click any element and choose "Inspect Element". 2. Select "Style" on the bottom right to get the CSS sidebar. 3. Try scrolling vertically. It doesn't. If the content doesn't take more space than available vertically, try resizing the browser window to make it so, and try to scroll then.
This is bad ... there is no vertical scrollbar in the Rule View. I will take a look.
Assignee: nobody → mratcliffe
Status: NEW → ASSIGNED
OS: Mac OS X → All
Priority: -- → P2
Hardware: x86 → All
Summary: Style Inspector can't scroll vertically → Style Inspector's Rule View can't scroll vertically
Whiteboard: [styleinspector][ruleview]
Attached patch Flexbox plus margin (obsolete) (deleted) — Splinter Review
Should be a very easy review because we have only changed a div to a hbox, set flex to 1 and given it overflow. I have also added 5px padding on the sides of the rules to make the overall view look better.
Attachment #573140 - Flags: review?(dao)
As far as I remember, this document has a content stylesheet -- overflow:auto belongs there.
Severity: critical → major
Attachment #573140 - Flags: review?(dao) → review-
Attached patch Flexbox plus margin 2 (deleted) — Splinter Review
Addressed reviewers comment
Attachment #573140 - Attachment is obsolete: true
Attachment #574295 - Flags: review?(dao)
Attachment #574295 - Flags: review?(dao) → review+
Whiteboard: [styleinspector][ruleview] → [styleinspector][ruleview][land-in-fx-team]
Comment on attachment 574295 [details] [diff] [review] Flexbox plus margin 2 - this.element = this.doc.createElementNS(HTML_NS, "div"); + this.element = this.doc.createElementNS(XUL_NS, "vbox"); this.element.setAttribute("tabindex", "0"); this.element.classList.add("ruleview"); + this.element.flex = 1; why is this needed?
Because the style view contents are inside a xul:window. Using height: 100% on a div will not work because there is no reference value (xul uses flex). In fact, height: 1% will still be 100% of the body of the document so there would still not be a scrollbar. We could also have kept the element as a div and added: display: -moz-box; -moz-box-orient: vertical; -moz-box-flex: 1; But that requires slightly more markup and seems pointless when there is a xul element designed to do exactly the same job.
Comment on attachment 574295 [details] [diff] [review] Flexbox plus margin 2 would like to get this into aurora as well as it is pretty broken without it.
Attachment #574295 - Flags: approval-mozilla-aurora?
Comment on attachment 574295 [details] [diff] [review] Flexbox plus margin 2 wfm, Mike!
Attachment #574295 - Flags: review+
Whiteboard: [styleinspector][ruleview][land-in-fx-team] → [styleinspector][ruleview][fixed-in-fx-team]
Comment on attachment 574295 [details] [diff] [review] Flexbox plus margin 2 Please land on m-c before requesting approval. Thanks.
Attachment #574295 - Flags: approval-mozilla-aurora?
Attached patch small followup (deleted) — Splinter Review
This broke the relative positioning we use for measuring text. Followup moves the relative positioning down to a rule element (we just need something to position against absolutely, the thing we position isn't visible).
Attachment #574729 - Flags: review?(rcampbell)
Attachment #574729 - Flags: review?(rcampbell) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [styleinspector][ruleview][fixed-in-fx-team] → [styleinspector][ruleview]
Target Milestone: --- → Firefox 11
Attachment #574295 - Flags: approval-mozilla-aurora?
Comment on attachment 574729 [details] [diff] [review] small followup Small styling change and a followup, landed on fx-team and m-c.
Attachment #574729 - Flags: approval-mozilla-aurora?
Comment on attachment 574295 [details] [diff] [review] Flexbox plus margin 2 [Triage Comment] This fix is related to a major new upcoming feature, so we'll it. Please land on Aurora as soon as possible.
Attachment #574295 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Attachment #574729 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Depends on: 701212
The scroll seems to work fine now. The bug is verified fixed on Firefox 10 beta1: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20100101 Firefox/10.0 Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0) Gecko/20100101 Firefox/10.0 But I noticed one thing. Go to www.yahoo.com and click to Inspect Element on the right empty side of the page. A black screen is seen for a very short time. What do you think?
Keywords: verified-beta
Whiteboard: [styleinspector][ruleview] → [styleinspector][ruleview][qa!:10]
Whiteboard: [styleinspector][ruleview][qa!:10] → [styleinspector][ruleview][qa+][qa!:10]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: