Closed
Bug 1099061
Opened 10 years ago
Closed 10 years ago
NodeInfobar shows different dimensions than "Box Model"
Categories
(DevTools :: Inspector, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 37
People
(Reporter: elbart, Assigned: kstrecker, Mentored)
References
Details
(Whiteboard: [good first bug][lang=js])
Attachments
(2 files)
75.53 KB,
image/png
|
Details | |
1.07 KB,
patch
|
miker
:
review+
|
Details | Diff | Splinter Review |
Testcase: https://bug1064775.bugzilla.mozilla.org/attachment.cgi?id=8487618 "Box Model" says 404x31, hover says 404x32.
Comment 1•10 years ago
|
||
The box model sidebar gets the content width/height from: http://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/server/actors/styles.js#569 The infobar gets it from: http://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/server/actors/highlighter.js#1162 So one rounds the values, the other ceils them.
Whiteboard: [good first bug][lang=js]
Comment 2•10 years ago
|
||
Because pixels can be fractional we should always use Math.Ceil() e.g. 0.3px will be rendered as 1px.
Updated•10 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•10 years ago
|
Mentor: mratcliffe
Assignee | ||
Comment 3•10 years ago
|
||
Hi, can i work on this bug please?
Comment 4•10 years ago
|
||
(In reply to Kai Strecker [:kstrecker] from comment #3) > Hi, > > can i work on this bug please? Sure, I will assign it to you. If you have any questions then you can ask in this bug or ping me in #devtools on irc.mozilla.org
Assignee: nobody → do6kai
Assignee | ||
Comment 5•10 years ago
|
||
So, here is the patch. I hope that it is okay.
Comment 6•10 years ago
|
||
Thanks Kai! You'll want to follow the instructions at https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/How_to_Submit_a_Patch#Getting_the_patch_reviewed to make sure your changes get reviewed :)
Flags: needinfo?(do6kai)
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(do6kai)
Attachment #8526884 -
Flags: review?(mratcliffe)
Comment 7•10 years ago
|
||
Comment on attachment 8526884 [details] [diff] [review] 1099061.patch Review of attachment 8526884 [details] [diff] [review]: ----------------------------------------------------------------- Assuming that this fixes the problem then an easy r+. Would you like me to land this?
Attachment #8526884 -
Flags: review?(mratcliffe) → review+
Assignee | ||
Comment 8•10 years ago
|
||
(In reply to Michael Ratcliffe [:miker] [:mratcliffe] from comment #7) > Assuming that this fixes the problem then an easy r+. Thank you for the review. > Would you like me to land this? Yes, this would be great. Thanks. :)
Updated•10 years ago
|
Keywords: checkin-needed
Comment 9•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/28be6b157ca4 Thanks for the patch, Kai! One request - for the future, we typically ask that the commit message be summarizing what the patch is doing rather than restating the problem it's fixing. Thanks! https://developer.mozilla.org/en-US/docs/Developer_Guide/Committing_Rules_and_Responsibilities#Checkin_comment
Keywords: checkin-needed
Whiteboard: [good first bug][lang=js] → [good first bug][lang=js][fixed-in-fx-team]
Comment 10•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/28be6b157ca4
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [good first bug][lang=js][fixed-in-fx-team] → [good first bug][lang=js]
Target Milestone: --- → Firefox 37
Updated•9 years ago
|
QA Whiteboard: [good first verify]
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•