Results 1 to 4 of 4

Thread: [CLOSED-591] scrolled text jumps back

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Mar 2008
    Posts
    2
    Vote Rating
    0
      0  

    Default [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:

    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>&nbsp;</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>
    See this URL : http://


    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

  2. #2
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
      0  

    Default

    Thanks for the bug report.

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    11
      0  

    Default

    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.

  4. #4
    Touch Premium Member
    Join Date
    Jan 2012
    Location
    Houston, Texas
    Posts
    96
    Vote Rating
    1
      0  

    Default Setting Height doesn't work

    I'm setting the height and this is not solving this problem.

Similar Threads

  1. Replies: 12
    Last Post: 28 Jun 2011, 3:22 AM
  2. NestedList back button only remembers text and items?
    By jsm174 in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 6 Aug 2010, 11:13 AM
  3. [CLOSED-179] Grouped list throws error when scrolled up.
    By elishnevsky in forum Sencha Touch 1.x: Bugs
    Replies: 4
    Last Post: 29 Jul 2010, 9:35 AM
  4. Text box back ground color
    By kishorgaur in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 4 Jun 2009, 12:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •