Opened 6 years ago

Closed 3 years ago

#16718 closed enhancement (patchwelcome)

SwapViews should work even when not occupying the whole screen width

Reported by: Eric Durocher Owned by: Patrick Ruzand
Priority: undecided Milestone: 1.13
Component: DojoX Mobile Version: 1.8.3
Keywords: Cc: Chris Mitchell, cjolif
Blocked By: Blocking:

Description

Currently, dojox/mobile/SwapView's must occupy the whole width of the screen, otherwise transitions will show bad visual effects because the views are not clipped. This should be enhanced so SwapViews can be used inside smaller panes that do not span the whole screen width, for example on tablets.

Attachments (2)

test.html (1.5 KB) - added by Sebastien Brunot 6 years ago.
Workaround example for simple use cases.
test2.html (1.4 KB) - added by Sebastien Brunot 6 years ago.
More generic example, that use -webkit-mask-box-image for clipping.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 6 years ago by Eric Durocher

Cc: Chris Mitchell added

comment:2 Changed 6 years ago by Eric Durocher

Cc: cjolif added

Changed 6 years ago by Sebastien Brunot

Attachment: test.html added

Workaround example for simple use cases.

Changed 6 years ago by Sebastien Brunot

Attachment: test2.html added

More generic example, that use -webkit-mask-box-image for clipping.

comment:3 Changed 6 years ago by Sebastien Brunot

Maybe we could use a solution similar to the one in test2.html to implement this as a feature for swap views transitions ? We could add some new methods to dojox/mobile/_maskUtils.js and use them to clip the transition ?

comment:4 Changed 6 years ago by Patrick Ruzand

Owner: changed from Eric Durocher to Patrick Ruzand
Status: newassigned

comment:5 Changed 3 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: assignedclosed

Given that no one has shown interest in creating a patch in the past 2+ years, I'm closing this as patchwelcome.

Note: See TracTickets for help on using tickets.