Hybrid View

    Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    18
    Vote Rating
    2
    marknutter is on a distinguished road

      2  

    Question List not showing up on Android 2.3

    List not showing up on Android 2.3


    I have a list of comments being loaded on demand via an ajax proxy in an app I'm building and they show up just fine on desktop browsers and my iPhone, but for some reason they are not showing up on an older android phone.

    The comments are loaded in via a store as such:

    Code:
    Ext.define('Kona.store.Comments', {
        extend: 'Ext.data.Store',
    
    
        requires: 'Ext.DateExtras',
    
    
        config: {
    
    
            model: 'Kona.model.Comment',
            proxy: {
              type: 'ajax',
              url: 'comments.json',
              reader: {
                type: 'json',
                record: 'comment'
              }
            },
            sorters: [
    
    
            ]
        }
    })
    
    which is triggered from a controller:

    Code:
    Ext.define('Kona.controller.Activities', {
      extend: 'Ext.app.Controller',
    
    
      config: {
        refs: {
          activity: 'activity',
          chatButton: 'chatButton',
          commentsStore: 'commentsStore',
          comments: 'comments'
        },
        control: {
          activity: {
            initialize: 'initActivity',
            activate: 'onActivityActivate'
          },
          commentsStore: {
            load: 'onCommentsLoad'
          },
          chatButton: {
            toggle: 'onChatButtonChange'
          }
        }
      },
      initActivity: function() {
    
    
    
    
    
    
      },
      onCommentsLoad: function() {
    
    
      },
      onActivityActivate: function() {
        var comments = this.getComments();
        this.commentStore = Ext.getStore('Comments');
        this.commentStore.load({url: this.getActivity().config.commentsUrl, callback: function(records) {
            alert(records[0].content);
            var scroller = comments.getScrollable().getScroller();
    
    
            scroller.scrollBy(0,100000)
    
    
          }
        });
      }
    
    
    });


    they are loaded into the comments list view:
    Code:
    Ext.define('Kona.view.comment.List', {
    
    
        extend: 'Ext.List',
    
    
        xtype: 'comments',
    
    
        config: {
    
    
            items: [
            ],
    
    
            itemTpl: [
                '<div class="comment"><div class="content">{content}</div></div>'
            ]
        },
    
    
        initialize: function() {
            this.callParent(arguments);
        }
    });
    Any idea what might be the issue? Thanks in advance!

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Nothing jumps out, is it a display issue or is there no list at all? Also, do you have the correct DOCTYPE in your index.html?

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha User nak1's Avatar
    Join Date
    Jan 2008
    Posts
    266
    Vote Rating
    0
    nak1 is an unknown quantity at this point

      0  

    Default


    I've got a similar issue. What type of information do you need to resolve the issue?
    No longer a Newbie

  4. #4
    Sencha User
    Join Date
    Sep 2011
    Posts
    2
    Vote Rating
    1
    cbrownstar is on a distinguished road

      0  

    Default Also experiencing this issue (listview showing blank on 2.3 with ST2)..

    Also experiencing this issue (listview showing blank on 2.3 with ST2)..


    I have a listview that is working for 4.0+, but does not work for 2.3..

    The strange this is, it looks like just white space, and the scrollbar shows.

    In my scenario I am using an itemTpl, and setting the store in the controller, and reloading. Works fine on iOS, straight HTML5, but not on 2.3.

    This is the culprit listview:

    {
    xtype: 'list',
    id: 'resultsList',
    itemId: 'resultsList',
    scrollToTopOnRefresh: false,
    itemTpl: [
    '<div style="text-align: left;float: left;">'+
    '{overallPlace} <small><b>{fullName}</b> </div></small>'+ //({number})
    '<div style="text-align: right;float: right;">'+
    '<small>{totalTime}</small></div>'
    ],
    plugins: [
    {
    xclass: 'Ext.plugin.PullRefresh',
    pullRefreshText: 'Pull down to refresh!',
    refreshFn: function(plugin) {
    var store = Ext.data.StoreManager.lookup('RaceResultsDataStore');
    store.load();
    var groupstore = Ext.data.StoreManager.lookup('GroupRaceDataStore');
    groupstore.load();
    }
    }
    ],
    }

    Anything I can do to get this to work?

  5. #5
    Sencha User
    Join Date
    Jan 2012
    Posts
    9
    Vote Rating
    1
    nmadrane is on a distinguished road

      1  

    Default Same problem here

    Same problem here


    Same problem here with an Android 2.3.4 ...
    Anyone with an idea ?
    It was working with sencha 2.0 but not with sencha 2.1

  6. #6
    Sencha User
    Join Date
    Sep 2011
    Posts
    2
    Vote Rating
    1
    cbrownstar is on a distinguished road

      1  

    Default


    Hi Sencha Team,
    This is definitely a bug in the framework. Anything we can do to get around it? Or suggested fix for it?

    -Chad