Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Run in Mobileweb #2

Open
ghost opened this issue Jun 4, 2014 · 0 comments
Open

Run in Mobileweb #2

ghost opened this issue Jun 4, 2014 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 4, 2014

to run on mobile web I had to:

widgets.tss
"#Nodes": {
top: "0dp",
backgroundColor: "#111",
separatorColor: "#222",
// separatorStyle: Ti.UI.iPhone.TableViewSeparatorStyle.SINGLE_LINE
}

widgets.js
ADD

/**

  • Sets the indexed item as active
  • @param {Object} _index The index of the item to show as active
    */
    $.setIndex = function(_index) {
    if (OS_IOS || OS_ANDROID) {
    $.Nodes.selectRow(_index);
    }
    };

// Fix for MobileWeb
if (OS_IOS || OS_ANDROID) {
$.Nodes.separatorStyle = Ti.UI.iPhone.TableViewSeparatorStyle.SINGLE_LINE;
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants