-
27 Nov 2012 3:51 AM #1
Unanswered: container scroll problem
Unanswered: container scroll problem
Hi,
I have problem with container horizontal scrolling. After I release the mouse (finger) the scroll comes back to its original position. I saw some posts with similar problem, but answers don't seem to be related.
May container has this scroll definition:
What should I do in order to make it work?Code:scrollable: { direction: 'horizontal', directionLock: false }
10x
-
27 Nov 2012 5:35 AM #2
I had this issue on some dataviews that i was attempting to use some custom CSS with. What I had to do was strip the custom CSS down to the bare minimum until the scrolling worked and then start adding pieces back in. The framework puts in some CSS itself to make scrolling work and some items in my CSS were conflicting.
-
29 Nov 2012 12:01 AM #3
I found a problem, this happened because all internal elements were in absolute position. The solution is to add dummy element (with position static) and give it width.
10x
-
13 Dec 2012 3:46 AM #4
Hi alona,
I am facing the same problem that you wrote in these thread....
Can you explain more about your last post...
Thanks in advance....
-
15 Dec 2012 10:42 PM #5
Hi,
My problem was that all items inside the container had absolute position, so the container didn't know to calculate its width/height and show scroll. So the solution is to place empty not visible element in static position and change it's dimensions on each add/remove item according to sum of all items width/height and padding between them. In this case container will show scroll according to empty item dimensions.
I hope this is clear now.
--Alona
-
17 Jan 2013 3:46 AM #6
Thanks for reply alona,
when I insert element with static position it solve the problem of scrolling, but all the element of the container are adjusted according to new height(Because I had given top by % param)... What I do. Should I use "Layout" property of container. If yes then HOW???
-
17 Jan 2013 4:06 AM #7
I am not really understand what do you mean. In my case container was with layout type absolute and all items were with known top in pixels.
-Regards
-
17 Jan 2013 4:29 AM #8
I had given position of items inside the container like
top:'0%',
left:'0%',
bottom:'0%',
width:'0%',
All elements of container has variable position. and when we insert element the element are adjusted by the container height(increased Height by new element).
So is there is any way to adjust all elements size not varying with new incremented size. And last what type of layout should I use..


Reply With Quote