#13786 closed defect (fixed)
Icons - Cannot Scroll to Top if Open Box in Scrollable View
Reported by: | Ming Zhe Huang | Owned by: | ykami |
---|---|---|---|
Priority: | high | Milestone: | 1.8 |
Component: | DojoX Mobile | Version: | 1.7.0b1 |
Keywords: | Cc: | Atsushi Ono | |
Blocked By: | Blocking: |
Description
Please see the attached video. Also test case is attached.
This problem is similar with #13777.
- The open box is inserted as a sibling of mblScrollableViewContainer
- Moreover, the open box has "position:absolute" which means even if we pull it into mblScrollableViewContainer, it will still cause scroll problem.
Attachments (3)
Change History (8)
Changed 9 years ago by
Attachment: | testIconOpenbox.swf added |
---|
comment:1 Changed 9 years ago by
Cc: | Atsushi Ono added |
---|
Changed 9 years ago by
Attachment: | 13786.patch added |
---|
[patch][ccla] patch to fix the issue by not using native scrollIntoView()
comment:3 Changed 9 years ago by
This issue is caused by calling native scrollIntoView() inside scrollable. I have attached a patch to fix the issue as follows:
- Add a new scrollable#scrollIntoView(node) function, which adjusts scrollable's scroll position to scroll the specified node into the scrollable's displaying area.
- Use the new function above when IconItem is placed inside scrollable, otherwise use window.scrollBy instead of native scrollIntoView because it sometimes fails on some Android devices.
Note: See
TracTickets for help on using
tickets.
video