Open Bug 1578259 Opened 5 years ago Updated 2 years ago

[Windows] The last top site is wrongly displayed on a second row when horizontally resizing the browser to exactly 1134px

Categories

(Firefox :: Top Sites, defect, P2)

All
Windows
defect

Tracking

()

Tracking Status
firefox-esr68 --- unaffected
firefox68 --- unaffected
firefox69 --- wontfix
firefox70 --- fix-optional
firefox71 --- fix-optional

People

(Reporter: acupsa, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

[Affected versions]:

  • Firefox Nightly 71.0a1, Build ID: 20190902094857
  • Firefox Release Candidate 69, Build ID: 20190827005903

[Affected Platforms]:

  • All Windows

[Steps to reproduce]:

  1. Open the browser and open a new tab.
  2. Horizontally resize the browser to 1135px.
  3. Observe the top sites.

[Expected result]:

  • The top sites are correctly displayed.

[Actual result]:

  • The last top site is displayed on a second row.

[Regression window]:

[Notes]:

  • This issue is not reproducible on Mac and Linux.
  • Attached a screenshot of the issue.

Ed, could you please take a look at this issue?

Flags: needinfo?(edilee)
Flags: needinfo?(edilee) → needinfo?(sdowne)

Redirecting to Scott

Regressed by: 1555507

I've tracked this down to the removal of fixed-to-top in https://github.com/mozilla/activity-stream/commit/570c5211dad31ac5d56893bc5affba7fd2c4528c which switched from block display of main to revert to flex

I'm guessing this is a combination of windows scrollbar size and flex vs block.

With windows, when this goes wrong, the outer-wrapper page width is 1105, with 32 px left and right padding, totals 1041px. When we set that elements child, we specify set its width to be 1042px. So with the fixed-to-top classname before the above patch, 1042px was enforced, because fixed-to-top made it block display. As soon as we removed fixed-to-top, it reverted to flex, which would constrain it to its available 1041px, which wasn't the expected space for topsites.

For linux and mac, the scrollbar is smaller (I suspect) and it has enough clearance, the main outer-wrapper is 1110px with 32 left and right padding, which totals 1046px which can comfortably fit the 1042px flex.

I'm guessing this isn't critical.

Flags: needinfo?(sdowne)
Priority: -- → P2
Regressed by: 1555391
Assignee: nobody → sdowne
Assignee: sdowne → nobody
Component: New Tab Page → Top Sites
Has Regression Range: --- → yes
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: