fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[Bug] Top sites do not use full width in landscape mode

Open ecsmyth opened this issue 6 years ago • 5 comments

Steps to reproduce

  1. Add top sites until there are two+ rows in portrait mode
  2. Rotate the phone to landscape mode

Expected behavior

Full width of the screen is used to show as many top sites as fit before creating additional rows.

Actual behavior

Screenshot_20200227-022958_Firefox Nightly

Device information

  • Android device: Samsung Galaxy S10 Int'l
  • Fenix version: Fenix Nightly 200226 build 20571807

┆Issue is synchronized with this Jira Task

ecsmyth avatar Feb 26 '20 19:02 ecsmyth

This seems to be a regression from #8719.

gabrielluong avatar Feb 26 '20 22:02 gabrielluong

Hi @topotropic, I am wondering what we should expect when we're in landscape mode for Top Sites. Above you can see the changes that was done to force it not expand and match the parent width.

I have included screenshots from #8719 of the previous behaviour:

gabrielluong avatar Feb 26 '20 22:02 gabrielluong

@gabrielluong can we keep the margins and fill up the row until it's full and the break to the next row?

topotropic avatar Feb 27 '20 09:02 topotropic

@gabrielluong It is not a regression from #8719, it is just the fact that GridLayoutManager is hardcoded to show 5 elements per row ( const val NUM_COLUMNS = 5 in TopSiteViewHolder )

mcarare avatar Feb 28 '20 09:02 mcarare

Verified as fixed on Firefox Preview Nightly 200310 (Build #20700607) GV: 75.0a1-20200309091841 using a Motorala G7 (Android 9) and OnePlus 6T (Android 9). When the device is in landscape mode the Top Sites are no longer limited to 5 per row but rather the length available on the screen and there is no large spacing between top sites.

LaurentiuApahideanSV avatar Mar 10 '20 12:03 LaurentiuApahideanSV