Closed Bug 1303732 Opened 8 years ago Closed 8 years ago

Inspector's width is too small when dragging the splitter to the right

Categories

(DevTools :: Shared Components, defect, P1)

51 Branch
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: phorea, Assigned: jdescottes)

References

Details

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

Attachments

(1 file)

[Note]:
- This only reproduces with 2016-09-17 Nightly, the patch causing it was backed-out for test failures. 

[Affected versions]:
- Nightly 51.0a1 2016-09-17

[Affected platforms]:
- Win 10 64-bit
- Mac OS X 10.11

[Steps to reproduce]:
1. Open the Inspector
2. Drag the splitter to the right

[Expected result]:
- The Inspector's right side has the same minimum width as before bug 1260552 landed

[Actual result]:
- The width of the Inspector's right side becomes very small so that only a part of "Rules" is visible

[Regression range]:
- Regressed by bug 1260552 which is currently backed-out from Nightly
Flags: qe-verify+
QA Contact: petruta.rasa
Priority: -- → P1
Whiteboard: [devtools-html][triage] → [devtools-html]
bug 1260552 did not land in Firefox 51, updating affected versions.
I think we swapped the min-width for the markup view and the sidebar panel:
- min-width for markup-view was 50px and is now 275px
- min-width for side panel was 300px and is now 50px

Helen: We could simply restore the previous values, but I remember discussions on #devtools regarding our minimum dimensions and letting users resize panels as they want (even if it means making some panels unusable when resized to very small dimensions). What do you think we should do here? Restore the previous values, or settle on smaller min-width (50px for both?)
Flags: needinfo?(hholmes)
Blocks: 1305051
Priority: P1 → P2
(In reply to Julian Descottes [:jdescottes] from comment #2)
> I think we swapped the min-width for the markup view and the sidebar panel:
> - min-width for markup-view was 50px and is now 275px
> - min-width for side panel was 300px and is now 50px
> 
> Helen: We could simply restore the previous values, but I remember
> discussions on #devtools regarding our minimum dimensions and letting users
> resize panels as they want (even if it means making some panels unusable
> when resized to very small dimensions). What do you think we should do here?
> Restore the previous values, or settle on smaller min-width (50px for both?)

I'd be fine with a smaller min-widths for both, although I think that at that small a size it would be a nice enhancement to snap close the sidebar panel. (I assume if you're making it that small you just want it out of the way.)
Flags: needinfo?(hholmes)
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Iteration: --- → 52.1 - Oct 3
Priority: P2 → P1
See Also: → 1306064
(In reply to Helen V. Holmes (:helenvholmes) (:✨) from comment #3)
> (In reply to Julian Descottes [:jdescottes] from comment #2)
> > I think we swapped the min-width for the markup view and the sidebar panel:
> > - min-width for markup-view was 50px and is now 275px
> > - min-width for side panel was 300px and is now 50px
> > 
> > Helen: We could simply restore the previous values, but I remember
> > discussions on #devtools regarding our minimum dimensions and letting users
> > resize panels as they want (even if it means making some panels unusable
> > when resized to very small dimensions). What do you think we should do here?
> > Restore the previous values, or settle on smaller min-width (50px for both?)
> 
> I'd be fine with a smaller min-widths for both, although I think that at
> that small a size it would be a nice enhancement to snap close the sidebar
> panel. (I assume if you're making it that small you just want it out of the
> way.)

Thanks for the feedback! Let's just restore the previous values for now and discuss the enhancement in Bug 1306064.
The patch attached here also addresses Bug 1305051, since it's just about an additional min-height.
Comment on attachment 8795794 [details]
Bug 1303732 - Set  min-height/width to 50px for markupview and sidebar panel;

https://reviewboard.mozilla.org/r/81738/#review80664

It would be great if it's possible to make the sidebar small (like 50px), but I understand taht this will be done in Bug 1306064 so, R+

Thanks for the patch!

Honza
Attachment #8795794 - Flags: review?(odvarko) → review+
Comment on attachment 8795794 [details]
Bug 1303732 - Set  min-height/width to 50px for markupview and sidebar panel;

Re-flagging for review. I'm now using 50px everywhere as we discussed.

Using 275px as a min dimension for the markup view was creating a different regression: the markup view was too big in vertical layout (its min height used to be 35vh).

As we all agree that smaller min dimensions are better in the end, let's make the change here. 

Bug 1306064 will be dedicated to implement the improvement suggested by Helen, (collapse the panel if it reaches its minimum dimension).
Attachment #8795794 - Flags: review+ → review?(odvarko)
Comment on attachment 8795794 [details]
Bug 1303732 - Set  min-height/width to 50px for markupview and sidebar panel;

https://reviewboard.mozilla.org/r/81738/#review80702

Great!

Honza
Attachment #8795794 - Flags: review?(odvarko) → review+
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/846e44451176
Set  min-height/width to 50px for markupview and sidebar panel;r=Honza
https://hg.mozilla.org/mozilla-central/rev/846e44451176
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
After discussing with Helen and Honza (comment #3 and comment #6) we agree to go for smaller minimum widths here.
This means: 
- the minimum width for the right panel remained the same here (50px)
- the minimum width for the left panel was decreased from 275px to 50px
- the minimum height (when in portrait mode) has been declared to 50px (no value before)
Thank you for the clarification! I will mark it as verified as the width match the values.

Cheers!
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: