Closed
Bug 957187
Opened 10 years ago
Closed 10 years ago
The variable inspection popup never appears in the right place on Linux and Windows
Categories
(DevTools :: Debugger, defect)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 29
People
(Reporter: vporof, Assigned: vporof)
Details
Attachments
(1 file, 1 obsolete file)
5.17 KB,
patch
|
past
:
review+
|
Details | Diff | Splinter Review |
This is driving me Insane... At least on Windows and Linux, apart from the spacetime distortions (bug 956758), whenever an inspection popup opens, it immediately starts moving around in unexpected ways and towards unexpected places. The act of simply expanding/collapsing a property would cause the popup to shift weirdly. This used to work properly.
Assignee | ||
Comment 1•10 years ago
|
||
I I can't get to the bottom of this, I'll be seriously considering displaying the variables view inline, in the editor, instead of opening it in a popup. This might end up looking like a console.dir() in the webconsole. What do you guys think about this? Would it be awful?
Comment 2•10 years ago
|
||
I think that would be fine.
Comment 3•10 years ago
|
||
(In reply to Nick Fitzgerald [:fitzgen] from comment #2) > I think that would be fine. Apart from looking funny and weird, that would be super slow as it will cause everything to shift down, causing a lot of reflows and stuff (due to how CM works) I suggest using the cursor node as the anchor and having only the X offset while opening the popup. Introducing Y offset causes bad things to happen. Especially things never align when you have the devtools zoomed up or down.
Assignee | ||
Comment 4•10 years ago
|
||
This might work. I'll play with it some more.
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•10 years ago
|
||
This seems to be working reasonably well from what I've tested.
Attachment #8357030 -
Attachment is obsolete: true
Attachment #8357095 -
Flags: review?(past)
Comment 6•10 years ago
|
||
Comment on attachment 8357095 [details] [diff] [review] v2 Review of attachment 8357095 [details] [diff] [review]: ----------------------------------------------------------------- I still can't reproduce it locally, but the changes look fine to me. ::: browser/devtools/sourceeditor/editor.js @@ +558,5 @@ > + let mark = cm.markText(from, to, { replacedWith: span }); > + return { > + anchor: span, > + clear: () => mark.clear() > + }; Just checking, but does mark.clear() discard replacedWith nodes automatically?
Attachment #8357095 -
Flags: review?(past) → review+
Assignee | ||
Comment 7•10 years ago
|
||
(In reply to Panos Astithas [:past] from comment #6) > > Just checking, but does mark.clear() discard replacedWith nodes > automatically? Yup.
Assignee | ||
Comment 8•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/ce93163fa554
Whiteboard: [fixed-in-fx-team]
Comment 9•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ce93163fa554
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 29
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•