Hybrid View
-
22 Nov 2010 8:04 AM #1
[CLOSED-591] scrolled text jumps back
[CLOSED-591] scrolled text jumps back
Sencha Touch version tested:
- 1.0 rev ____
- only default sench-touch.css
Platform tested against:
- iOS 4
Description:
- Created a panel with text that goes offscreen.
Panel is set to scroll vertically.
Text scrolls with touch/drag, but when released goes back to original position.
This makes it impossible to reach the bottom of the text.
Test Case:
See this URL : http://Code:<!DOCTYPE html> <html> <head> <title>scrolling test</title> <link rel="stylesheet" href="http://192.168.1.122/lib/sencha-touch-1.0/resources/css/sencha-touch.css" type="text/css"> <script type="text/javascript" src="http://192.168.1.122/lib/sencha-touch-1.0/sencha-touch-debug.js"></script> </head> <body><div id='container'></div></body> <script type="text/javascript" > // create multiline sampletext with "TOP OF FILE" on first line and "END OF FILE" on last line var sampleText = '<p>The quick brown fox jumped over the lazy dog.</p><p> </p>'; for (var i = 0; i < 6; i++) sampleText += sampleText; sampleText = '<p>TOP OF FILE</p>' + sampleText + '<p>END OF FILE</p>'; Ext.setup({ tabletStartupScreen: 'img/tablet_startup.png', phoneStartupScreen: 'img/phone_startup.png', icon: 'img/icon.png', glossOnIcon: false, onReady: function() { new Ext.Panel({ renderTo: 'container', scroll: 'vertical', html: sampleText }); } }) </script> </html>
Steps to reproduce the problem:
- load file, drag with finger, text will scroll
- release finger, text will jump back to the top of the file
The result that was expected:
- scrolled text would remain in position
The result that occurs instead:
- scrolled text springs back
-
22 Nov 2010 11:39 AM #2
-
26 Nov 2010 10:15 AM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Haarlem, Netherlands
- Posts
- 1,235
- Vote Rating
- 4
This is because you are not setting a height on the panel. This will mean it gets autoHeight, thus there won't be anything to scroll. Marking this as closed.
-
29 May 2012 1:13 PM #4
Setting Height doesn't work
Setting Height doesn't work
I'm setting the height and this is not solving this problem.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[CLOSED][3.0rc1] IE8 Disabled Button "Jumps" on mouse Enter/Leave
By Ramsay in forum Ext 3.x: BugsReplies: 12Last Post: 28 Jun 2011, 3:22 AM -
NestedList back button only remembers text and items?
By jsm174 in forum Sencha Touch 1.x: DiscussionReplies: 0Last Post: 6 Aug 2010, 11:13 AM -
[CLOSED-179] Grouped list throws error when scrolled up.
By elishnevsky in forum Sencha Touch 1.x: BugsReplies: 4Last Post: 29 Jul 2010, 9:35 AM -
Text box back ground color
By kishorgaur in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 4 Jun 2009, 12:07 AM


Reply With Quote
