Closed Bug 935352 Opened 11 years ago Closed 11 years ago

[Flatfish] Dock panel is fixed still until 7th~8th app icons landed

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sulapy, Assigned: gduan)

References

Details

(Whiteboard: Flatfish)

Attachments

(4 files)

User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36

Steps to reproduce:

1. Stay in Launcher screen 
2. Add in and Move out App icon to the dock panel
3. Try to swipe dock panel



Actual results:

1. Alignment of app icon from left side (not in the middle)
2. The first app icon is pushed out to left (or disappear?) while add 5th app icon.
3. The first app and second icon are pushed out to left (or disappear?) while add 6th app icon.
4. Can not swipe dock (during 1~6th app icons) until 7th app icon added onto the dock
5. Maximum of app icons on dock panel are eight icons


Expected results:

Not sure what's the right UI behavior.
Personally thinking:
1. Make sure the location of dock panel icons keeping aligned with the middle
2. Make sure the maximum number of app icons on the dock panel and the proper way to swipe if bigger than the capacity of single dock panel
Blocks: flatfish
Whiteboard: Flatfish
I think this is related to 
https://github.com/mozilla-b2g/gaia/blob/master/apps/homescreen/js/dock.js#L191
we use the first icon's width, however, the width include padding's size a below
https://github.com/mozilla-b2g/gaia/blob/master/apps/homescreen/style/dock.css#L94
So, we get the wrong value to calculate the position.
Assignee: nobody → gduan
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached file PR to master
Hi Fred,
I think this patch should be able to fix this bug, since our current gaia can return us correct windowWidth. Please let me know if you have any concern, then I'll ask Cristian to review it again.
Thanks.
Attachment #828123 - Flags: feedback?(gasolin)
Comment on attachment 828123 [details]
PR to master

looks good to me, thanks!
Attachment #828123 - Flags: feedback?(gasolin) → feedback+
Comment on attachment 828123 [details]
PR to master

Hi Cristian,
since tablet can get correct windowWidth now, I remove these css workaround to fix this bug. Please kindly check.

Thanks.
Attachment #828123 - Flags: review?(crdlc)
Comment on attachment 828123 [details]
PR to master

Cool, thanks
Attachment #828123 - Flags: review?(crdlc) → review+
Thanks, Cristian and Fred,
merged into master,
https://github.com/mozilla-b2g/gaia/commit/6a194fce88c2e687ee53e23fb7422db31a7ec05d
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: