fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[Bug] Extra empty space in the middle of search widget

Open jyeontaek opened this issue 7 years ago • 10 comments

Steps to reproduce

  1. Place search widget on home screen.
  2. Adjust the widget size to 2x1.

Expected behavior

The Firefox logo and microphone icon should be adjacent without much blank space in the middle.

Actual behavior

There is extra space in the middle. Screen Shot 2019-07-30 at 10 22 29 AM

Device information

  • Android device: Nexus 5 API 24
  • Fenix version: ?

┆Issue is synchronized with this Jira Task

jyeontaek avatar Jul 30 '19 17:07 jyeontaek

@jyeontaek the screenshot i'm seeing doesn't seem to match up with verdi's spec. it looks like in the screenshot there's a lot more blank space which is causing it to look unbalanced as you point out. is something happening with the text that it's getting cut out?

For reference: https://mozilla.invisionapp.com/share/UJQJP4IC7WN#/screens/349402550_Searchwidget

/cc @Verdi

lime124 avatar Jul 30 '19 17:07 lime124

In the screenshot, the widget is 2x1 cell size, so no text is placed inside (just like we want). No issues here. The problem is that the spec says 2x1 cell size should be 100x50 dp, but this doesn't fully cover the cells and causes a couple other problems. So, I stretched out the widget to fully cover the cells (just like how Fennec does).

jyeontaek avatar Jul 30 '19 18:07 jyeontaek

The problem is that the spec says 2x1 cell size should be 100x50 dp, but this doesn't fully cover the cells and causes a couple other problems.

What problems does this cause?

Verdi avatar Jul 30 '19 18:07 Verdi

All the unoccupied, invisible space in the cells are still part of the widget, so the user can move the widget by holding this space. The user also can't place another widget directly next to the search widget because of this invisible space.

jyeontaek avatar Jul 30 '19 18:07 jyeontaek

To be clear, this is the current behavior of Fennec as well:

image

sblatz avatar Jul 30 '19 18:07 sblatz

All the unoccupied, invisible space in the cells are still part of the widget, so the user can move the widget by holding this space. The user also can't place another widget directly next to the search widget because of this invisible space.

That's fine. I think that's an acceptable trade-off.

Verdi avatar Jul 30 '19 18:07 Verdi

Closing this as it's expected behavior according to UX :)

sblatz avatar Aug 07 '19 17:08 sblatz

The extra space in the middle of the widget is not the expected behavior. I said the acceptable tradeoff was the invisible space around the widget. The 2x1 widget should be 100 x 50 dp.

Verdi avatar Aug 07 '19 17:08 Verdi

The extra space in the middle of the widget has been fixed. I think we can close this issue now.

Screen Shot 2019-08-07 at 10 33 04 AM

jyeontaek avatar Aug 07 '19 17:08 jyeontaek

Perfect. Thank you.

Verdi avatar Aug 07 '19 17:08 Verdi