Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-2991

iOS Bug: ScrollView can't carry 2 tableviews

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS

      Description

      {html}<div><p>If a user has 2 tableViews that they want to scroll through as a
      Grouped tables, one and then the other. Scrollview either does not
      scroll, or puts one table on top of the other.</p>
      <p>Ticket Reference: <a href=
      "http://developer.appcelerator.com/helpdesk/view/68531">http://developer.appcelerator.com/helpdesk/view/68531</a></p>
      <p>Test Code:</p>
      <pre>
      <code>var win = Ti.UI.createWindow();
      var view = Ti.UI.createView({});
      var scrollView = Ti.UI.createScrollView({
      contentHeight:'auto',
      contentWidth:'auto',
      top:0,
      opacity:0.5
      });

      var table1 = Ti.UI.createTableView({ style:Titanium.UI.iPhone.TableViewStyle.GROUPED, top:0 });
      var table2 = Ti.UI.createTableView({ style:Titanium.UI.iPhone.TableViewStyle.GROUPED, top:0 });

      var count = 20;
      var data = [];

      for (var c=0;c<count;c++)
      {
      var row = Ti.UI.createTableViewRow({title:"Row "+(c+1)});
      data[c] = row;
      }

      table1.data = data;

      var inputData = [
      {title:'row 1', header:'Header 1'},
      {title:'row 2'},
      {title:'row 3'},
      {title:'row 4', header:'Header 2'},
      {title:'row 5'}
      ];

      table2.data = inputData;

      scrollView.add(table2);

      scrollView.add(table1);

      win.add(scrollView);

      win.open();</code>
      </pre></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              blainhamon Blain Hamon
              Reporter:
              aleard Alan Leard
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-2595
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration