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)
DevTools
General
Tracking
(firefox10+ verified)
RESOLVED
FIXED
Firefox 11
People
(Reporter: jose.fandos, Assigned: miker)
References
Details
(Keywords: verified-beta, Whiteboard: [styleinspector][ruleview][qa+][qa!:10])
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
dao
:
review+
rcampbell
:
review+
akeybl
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
rcampbell
:
review+
akeybl
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•13 years ago
|
||
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]
Assignee | ||
Comment 2•13 years ago
|
||
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)
Comment 3•13 years ago
|
||
As far as I remember, this document has a content stylesheet -- overflow:auto belongs there.
Updated•13 years ago
|
Severity: critical → major
Updated•13 years ago
|
Attachment #573140 -
Flags: review?(dao) → review-
Assignee | ||
Comment 4•13 years ago
|
||
Addressed reviewers comment
Attachment #573140 -
Attachment is obsolete: true
Attachment #574295 -
Flags: review?(dao)
Updated•13 years ago
|
Attachment #574295 -
Flags: review?(dao) → review+
Assignee | ||
Updated•13 years ago
|
Whiteboard: [styleinspector][ruleview] → [styleinspector][ruleview][land-in-fx-team]
Comment 5•13 years ago
|
||
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?
Assignee | ||
Comment 6•13 years ago
|
||
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 7•13 years ago
|
||
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 8•13 years ago
|
||
Comment on attachment 574295 [details] [diff] [review]
Flexbox plus margin 2
wfm, Mike!
Attachment #574295 -
Flags: review+
Comment 9•13 years ago
|
||
Whiteboard: [styleinspector][ruleview][land-in-fx-team] → [styleinspector][ruleview][fixed-in-fx-team]
Comment 10•13 years ago
|
||
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?
Comment 11•13 years ago
|
||
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)
Updated•13 years ago
|
Attachment #574729 -
Flags: review?(rcampbell) → review+
Comment 12•13 years ago
|
||
Followup landed https://hg.mozilla.org/integration/fx-team/rev/3831a1444526
Comment 13•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e2aca39ef669
https://hg.mozilla.org/mozilla-central/rev/3831a1444526
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [styleinspector][ruleview][fixed-in-fx-team] → [styleinspector][ruleview]
Target Milestone: --- → Firefox 11
Updated•13 years ago
|
Attachment #574295 -
Flags: approval-mozilla-aurora?
Comment 14•13 years ago
|
||
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 15•13 years ago
|
||
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+
Updated•13 years ago
|
Attachment #574729 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•13 years ago
|
tracking-firefox10:
--- → ?
Comment 16•13 years ago
|
||
status-firefox10:
--- → fixed
Comment 17•13 years ago
|
||
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]
Updated•13 years ago
|
Whiteboard: [styleinspector][ruleview][qa!:10] → [styleinspector][ruleview][qa+][qa!:10]
Updated•13 years ago
|
Updated•13 years ago
|
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•