Scroll vertically only

Ask for help relating to our Sencha Touch based Scheduler (for iPad, or any other supported phone, phablet or tablet)
Post Reply
User avatar
xavier_CDS
Posts: 10
Joined: Fri Jul 10, 2015 3:57 pm

Scroll vertically only

Post by xavier_CDS »

Hello everyone.

I am having a small problem with my application. I want to disable the horizontal scroll in my scheduler (timeAxisColumnCfg & resourceColumnWidth). I found nothing in the documentation. Do you have an idea ?

Thank you in advance !

Xavier

User avatar
mats
Core Developer
Core Developer
Posts: 16756
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Scroll vertically only

Post by mats »

Try using "forceFit" option?
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
xavier_CDS
Posts: 10
Joined: Fri Jul 10, 2015 3:57 pm

Re: Scroll vertically only

Post by xavier_CDS »

Yes but it's not the trick. I would like can't move schedule or my time zone on the left or on the right. No scroll on horizontaly ;) But I don't see this mode to examples :'(

I use the Vertical mode !!!

User avatar
Maxim Gorkovsky
Core Developer
Core Developer
Posts: 3290
Joined: Wed Jan 08, 2014 11:46 am

Re: Scroll vertically only

Post by Maxim Gorkovsky »

Hello.
Check out our vertical orientation example. It shows how to change columns width and how to fit them.

User avatar
xavier_CDS
Posts: 10
Joined: Fri Jul 10, 2015 3:57 pm

Re: Scroll vertically only

Post by xavier_CDS »

Thanks but my Schedule is : http://www.bryntum.com/examples/touch-s ... tical.html

Your Scheduler is ExtJS, no ?

User avatar
Maxim Gorkovsky
Core Developer
Core Developer
Posts: 3290
Joined: Wed Jan 08, 2014 11:46 am

Re: Scroll vertically only

Post by Maxim Gorkovsky »

I suggested to take approach from that example. E.g. you can do smth like:

Code: Select all

var newFittingWidth = YourMethodToCalculateFittingWidth();
scheduler.getSchedulingView().setColumnWidth(newFittingWidth);

User avatar
xavier_CDS
Posts: 10
Joined: Fri Jul 10, 2015 3:57 pm

Re: Scroll vertically only

Post by xavier_CDS »

But it's not the problem... I have juste 1 column but Bryntum scroll fort my two grid (time & events).

On my screen I would not scroll on the left or on the right but actually I can... :cry:

On time column :
A.jpg
A.jpg (52.63 KiB) Viewed 7983 times
On event colum :
B.jpg
B.jpg (48.17 KiB) Viewed 7983 times

User avatar
Maxim Gorkovsky
Core Developer
Core Developer
Posts: 3290
Joined: Wed Jan 08, 2014 11:46 am

Re: Scroll vertically only

Post by Maxim Gorkovsky »

Hello.
Try to apply this config to your scheduler grid:

Code: Select all

normalGridConfig    : {
    scrollConfig    : {
        direction : 'vertical'
    }
},

lockedGridConfig    : {
    scrollConfig    : {
        direction : 'vertical'
    }
}

User avatar
xavier_CDS
Posts: 10
Joined: Fri Jul 10, 2015 3:57 pm

Re: Scroll vertically only

Post by xavier_CDS »

You are the BEST !!! :!: :!: :!:

Post Reply