Closed
Bug 620061
Opened 15 years ago
Closed 15 years ago
Restoring more than one column of tabs make the tabs panel size being too small
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: vingtetun, Assigned: vingtetun)
Details
Attachments
(1 file, 1 obsolete file)
|
6.96 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
Steps to reproduce:
* Open 5 or 6 tabs
* Crash fennec (Hit Ctrl + C in the console)
* relaunch fennec
Actual result:
* The tabs container size is sized to hold only one tab
Expected result:
* The tabs container has the right side to hold all the tabs
Attachment #498479 -
Flags: review?(mark.finkle)
Updated•15 years ago
|
Attachment #498479 -
Flags: review?(mark.finkle) → review+
| Assignee | ||
Comment 2•15 years ago
|
||
http://hg.mozilla.org/mobile-browser/rev/165330d70cc4
This is for the next release, this is a recent regression from adding a super automatic Tab Restore facility when crashing
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 3•15 years ago
|
||
This cause a regression when opening just one tab normally...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 4•15 years ago
|
||
The bug add some tests to ensure we don't regress again
Attachment #498479 -
Attachment is obsolete: true
Attachment #499272 -
Flags: review?(mark.finkle)
Comment 5•15 years ago
|
||
Comment on attachment 499272 [details] [diff] [review]
Patch v0.2 + tests
>diff --git a/chrome/content/tabs.xml b/chrome/content/tabs.xml
> // XXX we can do better than using a constant here
> let columnsCount = Math.ceil(this.children.childNodes.length / Math.floor(this.children.getBoundingClientRect().height / (firstBox.height + 4)));
>- if (this._columnsCount != columnsCount && (firstBox.left != lastBox.left)) {
>- let width = Math.max(lastBox.right - firstBox.left, firstBox.right - lastBox.left);
>- width -= this._columnsCount * COLUMN_MARGIN;
>-
>- this.children.style.width = (width + columnsCount * COLUMN_MARGIN) + "px";
>+ if (this._columnsCount != columnsCount && window.innerWidth != 1) {
Why | window.innerWidth != 1 | ? What is special about "1"?
r+, but I am worried about depending on | window.innerWidth != 1 |
Attachment #499272 -
Flags: review?(mark.finkle) → review+
Comment 6•15 years ago
|
||
Add a comment about why we use | window.innerWidth != 1 | too
| Assignee | ||
Comment 7•15 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
Comment 8•15 years ago
|
||
Need to Verify fix. Will test with forcing crash later
Comment 9•15 years ago
|
||
Verified fixed, using:
Mozilla/5.0 (Maemo; Linux armv7l; rv:2.0b9pre) Gecko/20101227 Firefox/4.0b9pre Fennec/4.0b4pre ID:20101227013355
Status: RESOLVED → VERIFIED
Updated•12 years ago
|
tracking-fennec: ? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•