Closed
Bug 632555
Opened 12 years ago
Closed 12 years ago
Scale about:sessionrestore based on viewport height
Categories
(Firefox :: Session Restore, defect)
Firefox
Session Restore
Tracking
()
RESOLVED
FIXED
Firefox 8
People
(Reporter: zpao, Assigned: int3)
Details
(Keywords: polish, Whiteboard: [inbound])
Attachments
(2 files, 4 obsolete files)
22.21 KB,
image/gif
|
Details | |
5.21 KB,
patch
|
Details | Diff | Splinter Review |
We have media queries so we can do something to make about:sessionrestore not suck so much in a tall window.
Assignee | ||
Comment 1•12 years ago
|
||
I had a go at this using flexboxes. With this patch the treeview expands such that the whole errorPageContainer takes up 70% of the total height. I thought about making the treeview expand only if there were enough treechildren entries to fill it up, but I couldn't find an easy CSS-only way to do it.
Attachment #549648 -
Flags: review?(paul)
Assignee | ||
Comment 2•12 years ago
|
||
Removed an extra newline.
Attachment #549648 -
Attachment is obsolete: true
Attachment #549649 -
Flags: review?(paul)
Attachment #549648 -
Flags: review?(paul)
Reporter | ||
Comment 3•12 years ago
|
||
Comment on attachment 549649 [details] [diff] [review] Patch v1 Something with the spacing is wrong and it just looks off. Ultimately not a huge deal, but it's obvious enough. The min width also appears to be different (resizing the window will reflow at different widths for nightly vs this patch). Even if all of that was good, you're missing winstripe & gnomestripe changes. Dão, perhaps you can give some pointers on making this polished? I'm not familiar with -moz-box and how that plays with everything else.
Attachment #549649 -
Flags: review?(paul)
Attachment #549649 -
Flags: review-
Attachment #549649 -
Flags: feedback?(dao)
Assignee | ||
Comment 4•12 years ago
|
||
Fixed the sizing issues. A quick explanation: width:auto doesn't cause flexboxes to expand to fill their available width; instead we should use width:-moz-available. Vertical margins don't collapse for flexboxes. I fixed this by manually calculating the 'real' margin widths in the original about:sessionrestore and using those values instead. I've tested on OS X and Linux; will request review once I get a look at Windows. It's the same code across platforms, though.
Assignee: nobody → jezreel
Attachment #549649 -
Attachment is obsolete: true
Attachment #549649 -
Flags: feedback?(dao)
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #550316 -
Attachment is obsolete: true
Assignee | ||
Comment 6•12 years ago
|
||
So to get a more precise comparison I took screenshots and overlaid them in Photoshop and I discovered some pixel imperfections.. probably the most significant one is that the treeview is now eight pixels narrower. Occurs on OS X and Windows, and I wouldn't be surprised if it was on Linux as well. The OS X overlaid-screenshot is attached. I think the differences are insignificant enough though.
Assignee | ||
Updated•12 years ago
|
Attachment #550317 -
Flags: review?(paul)
Reporter | ||
Comment 7•12 years ago
|
||
Comment on attachment 550317 [details] [diff] [review] Patch v2 Looks good to me, but I'd like to get a second pair of eyes on it just to make sure. We could have an XP stylesheet in sessiontore/content since you're adding a fair bit more duplication, but personally, it's not a huge deal either way. I don't think we want to spend any more time on this.
Attachment #550317 -
Flags: review?(paul)
Attachment #550317 -
Flags: review?(dao)
Attachment #550317 -
Flags: review+
Comment 8•12 years ago
|
||
Comment on attachment 550317 [details] [diff] [review] Patch v2 >+#errorLongContent { >+ display: -moz-box; >+ -moz-box-flex: 1; >+ -moz-box-orient: vertical; >+} >+ >+#errorTrailerDesc { >+ display: -moz-box; >+ -moz-box-flex: 1; >+ -moz-box-orient: vertical; > } These two rules can be merged.
Attachment #550317 -
Flags: review?(dao) → review+
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 10•12 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/4d2c4722547c
Keywords: checkin-needed
Whiteboard: [inbound]
Comment 11•12 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/4d2c4722547c
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 8
You need to log in
before you can comment on or make changes to this bug.
Description
•