1. #1
    Sencha User
    Join Date
    Aug 2012
    Location
    Vancouver, Canada
    Posts
    31
    Answers
    1
    Vote Rating
    1
    trevorcox is on a distinguished road

      0  

    Default Answered: PullRefresh working but not shown - ST2.2.1

    Answered: PullRefresh working but not shown - ST2.2.1


    PullRefresh is working in my app (iOS, Chrome), but the arrow, text, and animation appear only if I do NOT include this in my SCSS:
    Code:
    @import 'sencha-touch/default/src/dataview/List';
    but of course that leaves me with a List that is not styled.

    In all of the following cases, the list moves down and leaves blank space, and the arrow, text, and animation do not appear:

    - Using
    Code:
    touch/resources/css-debug/sencha-touch.css
    - Including
    Code:
    @import 'sencha-touch/default/all';
    - Including
    Code:
    @import 'sencha-touch/default/src/dataview/List';
    My code:

    Ext.define('ftapp.view.comp.MsgList', {
    extend: 'Ext.dataview.List',
    requires: 'ftapp.model.Msg',
    xtype: 'msglist',
    config: {
    ui: 'round',
    singleSelect: false, // no selection
    disableSelection: true,
    onItemDisclosure: true,
    deferEmptyText: true, // defer until first load

    itemTpl :'<div class="msgsrc">{fname}</div>',
    emptyText: '<div class="x-html">There are no news items.</div>',
    store: 'RemoteMsg',
    scrollToTopOnRefresh: false,

    plugins: [
    {
    xclass: 'Ext.plugin.PullRefresh',
    pullRefreshText: 'Pull down to refresh.',
    }
    ],

    },
    });

    And my SCSS:

    @import 'sencha-touch/base';
    @import 'sencha-touch/default';


    //@import 'sencha-touch/base/all';
    //@import 'sencha-touch/default/all';
    // find touch/resources/themes/stylesheets/ sencha-touch/default/src -name "*scss"


    @import 'sencha-touch/default/src/Panel';
    @import 'sencha-touch/default/src/Button';
    @import 'sencha-touch/default/src/picker/Picker';
    @import 'sencha-touch/default/src/Toolbar';
    @import 'sencha-touch/default/src/carousel/Carousel';
    @import 'sencha-touch/default/src/form/Panel';
    @import 'sencha-touch/default/src/MessageBox';
    @import 'sencha-touch/default/src/dataview/List'; // *** breaks PullRefresh
    @import 'sencha-touch/default/src/plugin/PullRefresh';
    @import 'sencha-touch/default/src/field/Checkbox';
    @import 'sencha-touch/default/src/field/Field';
    @import 'sencha-touch/default/src/field/Search';
    @import 'sencha-touch/default/src/field/Select';
    @import 'sencha-touch/default/src/field/TextArea';
    @import 'sencha-touch/default/src/form/FieldSet';

  2. It is working in regular Panels, but not with the 3rd party sencha-SlideNavigation plugin. No need for further discussion here, thank you.

  3. #2
    Sencha User
    Join Date
    Apr 2012
    Posts
    164
    Answers
    13
    Vote Rating
    9
    in4p will become famous soon enough

      0  

    Default


    Your SASS looks like it's left over from earlier version updates, and I'm guessing that's part of the problem.

    Do you get an error when you compile the sass?

    Have you tried just using the standard sencha import in the sass file, i.e.
    Code:
    @import 'sencha-touch/default';@import 'sencha-touch/default/all';'
    and not all the other stuff?

  4. #3
    Sencha User
    Join Date
    Aug 2012
    Location
    Vancouver, Canada
    Posts
    31
    Answers
    1
    Vote Rating
    1
    trevorcox is on a distinguished road

      0  

    Default


    Thanks in4p!
    No, this SASS is a fresh rewrite for 2.2.1.
    No, I don't get any errors.
    Yes, I tried
    @import 'sencha-touch/default';@import 'sencha-touch/default/all';' without the other @imports.

  5. #4
    Sencha User
    Join Date
    Aug 2012
    Location
    Vancouver, Canada
    Posts
    31
    Answers
    1
    Vote Rating
    1
    trevorcox is on a distinguished road

      0  

    Default Resolved

    Resolved


    It is working in regular Panels, but not with the 3rd party sencha-SlideNavigation plugin. No need for further discussion here, thank you.

Thread Participants: 1

Tags for this Thread