Opened 8 years ago
Closed 8 years ago
#15961 closed defect (invalid)
Bounce back position in dojox/mobile/scrollable
Reported by: | Stefan Bird | Owned by: | Eric Durocher |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | DojoX Mobile | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
When calculating the horizontal bounceback position for content that is wider than the screen, 20 is subtracted from dim.o.w which provides a border (see http://bugs.dojotoolkit.org/browser/dojo/dojox/trunk/mobile/scrollable.js?rev=29617#L580 ).
However the equivalent code for the right hand side on line 578 doesn't subtract 20 to allow for the border, meaning that ScrollablePanes? etc bounce back to a position that cuts off the right part of their content.
Suggest changing line 578 to to.x = dim.c.w <= dim.d.w ? 0 : -dim.o.w - 20; if narrower, move to 0
Change History (3)
comment:1 Changed 8 years ago by
comment:3 Changed 8 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
OK, thanks for the update, I am closing this.
Note: See
TracTickets for help on using
tickets.
I have tried reproducing a misbehavior using this content:
but didn't see a bouncing back misbehavior. I guess I miss something. Could you please attach a test case, or some details about how to reproduce a misbehavior? Thanks.