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)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: vingtetun, Assigned: vingtetun)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Patch (obsolete) — 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)
Attachment #498479 - Flags: review?(mark.finkle) → review+
This good for which release?
tracking-fennec: --- → ?
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
This cause a regression when opening just one tab normally...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
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 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+
Add a comment about why we use | window.innerWidth != 1 | too
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Need to Verify fix. Will test with forcing crash later
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
bugspam
Assignee: nobody → 21
tracking-fennec: ? → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: