Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Request: horizontal scroll panel #206

Closed
nunodonato opened this issue Jun 26, 2012 · 5 comments
Closed

Request: horizontal scroll panel #206

nunodonato opened this issue Jun 26, 2012 · 5 comments

Comments

@nunodonato
Copy link

Vertical scroll panels are the most common.
But to allow more flexibility and options (especially because we can use both portrait and landscape modes), an horizontal scroll panel would be must welcomed too :)

@tneil
Copy link
Collaborator

tneil commented Jun 26, 2012

I've added this to the v0.9.4 milestone. I'm thinking about adding a data-bb-direction attribute with values vertical | horizontal | both where vertical would be the default if nothing was specified.

    <div data-bb-type="scroll-panel" data-bb-direction="horizontal">

   </div>

@nunodonato
Copy link
Author

Just tried now to place a very wide div inside a scrollpanel and scrolling works as expected.
Mixing both is what breaks things :)
If the wide div is before a list, then the panel will scroll horizontally but not vertically. If the list comes first, then it will scroll vertically but not horizontally.

@rrenna
Copy link

rrenna commented Oct 15, 2012

Is this still expected to be a part of 0.9.4?

@tneil
Copy link
Collaborator

tneil commented Oct 15, 2012

It has been re-assigned to the 0.9.5 milestone.. We were having issues with iScroll for this feature but have now moved to a built in scrolling capability.

On BB10 phones I believe you "should" be able to create a scrolling panel and define it's width and height and you should get both horizontal and vertical scrolling depending on how you layout your content in the scroll panel.

I haven't tested it yet, but I don't see why it wouldn't work without even declaring the "horizontal" direction. The only changes that will be necessary are possible modifications to the PlayBook implementation.

tneil pushed a commit that referenced this issue Nov 8, 2012
tneil pushed a commit that referenced this issue Nov 8, 2012
…his to BB10 devices only. This can be linked to issues #206 #292 #418
@tneil
Copy link
Collaborator

tneil commented Nov 8, 2012

Ok... so I have an update for this one. I believe the primary use case that was desired for a horizontal scrolling panel was to essentially create a carousel of images.

I have just checked in some changes to the grid layout that should provide this user experience on BB10 devices.

Take a look to see if this covers the desired use cases for a horizontally scrolling scroll panel.. If it is, I'll consider this request satisfied

https://github.com/blackberry/bbUI.js/wiki/Grid-List

@tneil tneil closed this as completed Dec 1, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants