Closed
Bug 1215418
Opened 9 years ago
Closed 9 years ago
[markup-view] HTML editor is incorrectly positioned
Categories
(DevTools :: Inspector, defect)
Tracking
(firefox44 fixed)
VERIFIED
FIXED
Firefox 44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: sebo, Assigned: jsantell)
References
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
2.24 KB,
patch
|
bgrins
:
review+
|
Details | Diff | Splinter Review |
When right-clicking an element within the Inspector and choosing 'Edit As HTML' the editor is now placed far to the right.
This happens since today's Nightly update. So the regression range should be https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=00f555ed6608&tochange=d374d16cbb25.
Sebastian
Comment 1•9 years ago
|
||
(In reply to Sebastian Zartner [:sebo] from comment #0)
> When right-clicking an element within the Inspector and choosing 'Edit As
> HTML' the editor is now placed far to the right.
>
> This happens since today's Nightly update. So the regression range should be
> https://hg.mozilla.org/mozilla-central/
> pushloghtml?fromchange=00f555ed6608&tochange=d374d16cbb25.
>
> Sebastian
Thanks for the report. This is weird, I've checked to make sure it's not Bug 1214663 or Bug 1189464 - we need to get a regression window for this.
Keywords: regressionwindow-wanted
Comment 2•9 years ago
|
||
Hmm looks like there is a .theme-body rule in common.css with margin: 0 that's overriding the margin on the html editor.
Jordan, looks like this is a regression due to Bug 1213137. I'm not sure that we should define any positioning rules for .theme-body, right now it's used only for text/background styling and it's used pretty widely. Additionally, this kind of rule should live in the themes and not common.css since that's loaded in browser.xul.
I'd suggest instead that you could handle this in the light and dark themes on the `body` selector, or this could be handled per-tool (right now we only have a couple of frames that are HTML and I think each does it's own positioning reset)
Blocks: 1213137
Flags: needinfo?(jsantell)
Updated•9 years ago
|
Keywords: regressionwindow-wanted
Assignee | ||
Comment 3•9 years ago
|
||
Good catch, grabbing this -- testing a few views this didn't seem to make a change, I wonder if this should only be applied for HTML documents, as it seems necessary -- either way, can handle in another bug, working on a quick patch now for this
Assignee: nobody → jsantell
Status: NEW → ASSIGNED
Flags: needinfo?(jsantell)
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8674931 -
Flags: review?(bgrinstead)
Comment 5•9 years ago
|
||
Comment on attachment 8674931 [details] [diff] [review]
1215418-style-regression.patch
Review of attachment 8674931 [details] [diff] [review]:
-----------------------------------------------------------------
::: devtools/client/themes/light-theme.css
@@ +4,5 @@
> * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
>
> @import url(variables.css);
>
> +.theme-body.html {
What about `body.theme-body` and get rid of the html attr?
Assignee | ||
Comment 6•9 years ago
|
||
Attachment #8674931 -
Attachment is obsolete: true
Attachment #8674931 -
Flags: review?(bgrinstead)
Attachment #8674932 -
Flags: review?(bgrinstead)
Comment 7•9 years ago
|
||
Comment on attachment 8674932 [details] [diff] [review]
1215418-style-regression.patch
Review of attachment 8674932 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM
Attachment #8674932 -
Flags: review?(bgrinstead) → review+
Comment 9•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 44
Reporter | ||
Comment 10•9 years ago
|
||
Works. Thanks for the quick fix!
Sebastian
Status: RESOLVED → VERIFIED
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•