Closed Bug 602669 Opened 16 years ago Closed 7 years ago

Do a better algorithm to calculate the number of columns for tabs

Categories

(Firefox for Android Graveyard :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: vingtetun, Unassigned)

Details

bug 575403 as changed the margin-top/bottom of individual tab as well as the size of the moz-columnw-width and the padding-left/right of the tabs container. This should be taken into account while calculating the number of columns for holding the tab. Right now this has been done by using constants but we could replace that by a better algorthm or simply by using window.getComputedStyle(firstBox, null).getPropertyValue("margin-top") (same for margin-bottom) and add them to the individual tab height. In the same idea we could get the -moz-column-width, padding-left, padding-right of the tabs container to calculate the needed width. The problem with this solution is that it makes the code quite dirty.
Closing all opened bug in a graveyard component
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.