Opened 7 years ago

Closed 7 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 7 years ago by Adrian Vasiliu

I have tried reproducing a misbehavior using this content:

<body style="visibility:hidden;height:100%;overflow:hidden:">
   <div data-dojo-type="dojox/mobile/ScrollablePane" scrollDir="hv">
      <div style="width:1000px;height:800px;border:4px solid blue; background-color:red">
      </div>	
   </div>
</body>

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.

comment:2 Changed 7 years ago by Stefan Bird

My apologies - it was a CSS issue at our end.

comment:3 Changed 7 years ago by Eric Durocher

Resolution: invalid
Status: newclosed

OK, thanks for the update, I am closing this.

Note: See TracTickets for help on using tickets.