Closed Bug 1304701 Opened 8 years ago Closed 8 years ago

Vertical layout is not initialized correctly in newly opened devtools

Categories

(DevTools :: Inspector, defect, P1)

defect

Tracking

(firefox49 unaffected, firefox50 unaffected, firefox51 unaffected, firefox52 verified)

VERIFIED FIXED
Firefox 52
Iteration:
52.1 - Oct 3
Tracking Status
firefox49 --- unaffected
firefox50 --- unaffected
firefox51 --- unaffected
firefox52 --- verified

People

(Reporter: jdescottes, Assigned: jdescottes)

References

Details

(Keywords: regression, Whiteboard: [devtools-html])

Attachments

(2 files, 1 obsolete file)

Regressions from Bug 1260552 STRs: - open inspector - resize the window so that inspector switches to vertical layout - close devtools - open devtools ER: Inspector should use vertical layout AR: Inspector is in horizontal layout, but switches to vertical layout as soon as the window is resized.
Blocks: 1260552
Whiteboard: [devtools-html] [triage]
Attached patch bug1304701.patch (obsolete) — Splinter Review
Thanks for the report! Honza
Assignee: nobody → odvarko
Status: NEW → ASSIGNED
Attachment #8793762 - Flags: review?(jdescottes)
Comment on attachment 8793762 [details] [diff] [review] bug1304701.patch Review of attachment 8793762 [details] [diff] [review]: ----------------------------------------------------------------- So I was working on a patch already and probably should have said so :) I added a test here as well. Instead of doing an additional setState, I prefer to initialize the splitter with all the correct props from the beginning.
Attachment #8793762 - Flags: review?(jdescottes)
Iteration: --- → 52.1 - Oct 3
Flags: qe-verify?
Priority: -- → P1
Whiteboard: [devtools-html] [triage] → [devtools-html]
Assignee: odvarko → jdescottes
Comment on attachment 8793767 [details] Bug 1304701 - initialize splitter in horizontal mode if inspector starts in portrait mode; https://reviewboard.mozilla.org/r/80432/#review79120 Nice, R+ and one question. Honza ::: devtools/client/inspector/test/browser_inspector_portrait_mode.js:20 (Diff revision 3) > + let originalWidth = hostWindow.outerWidth; > + let originalHeight = hostWindow.outerHeight; > + > + info("Resize toolbox window to force inspector to landscape mode"); > + hostWindow.resizeTo(800, 500); > + How come you don't have to wait for class mutation in this case?
Attachment #8793767 - Flags: review?(odvarko) → review+
(In reply to Jan Honza Odvarko [:Honza] from comment #6) > Comment on attachment 8793767 [details] > Bug 1304701 - initialize splitter in horizontal mode if inspector starts in > portrait mode; > > https://reviewboard.mozilla.org/r/80432/#review79120 > > Nice, R+ and one question. > > Honza > > ::: devtools/client/inspector/test/browser_inspector_portrait_mode.js:20 > (Diff revision 3) > > + let originalWidth = hostWindow.outerWidth; > > + let originalHeight = hostWindow.outerHeight; > > + > > + info("Resize toolbox window to force inspector to landscape mode"); > > + hostWindow.resizeTo(800, 500); > > + > > How come you don't have to wait for class mutation in this case? That's a good point. I don't need wait for a mutation because the inspector is already in landscape mode. To be bullet-proof I should check the current layout, and resize only if the inspector in not in landscape mode. I'll update the test to do that.
Attachment #8793762 - Attachment is obsolete: true
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/771ccd7f6025 initialize splitter in horizontal mode if inspector starts in portrait mode;r=Honza
Flags: qe-verify? → qe-verify+
QA Contact: cristian.comorasu
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
I reproduced this bug using Fx 52.0a1, build ID:20160922030437, on Windows 10 x64 and Mac OS X 10.10.5. I can confirm this issue is fixed, I verified using Fx 52.0a1 build ID:20160927030200, on Windows 10 x64, Ubuntu 14.04 LTS and Mac OS X 10.12.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: