dexteryy / CardKit

A mobile UI library provides a series of building blocks which are all components built on DarkDOM and Moui.
http://ozjs.org/CardKit
703 stars 141 forks source link

nav not display when use phonegap #10

Closed gznofeng closed 11 years ago

gznofeng commented 11 years ago

I use cardkit in sinaapp.I push example folder into my mobile project and package in phonegap.

but I can't see the nav in my project

dexteryy commented 11 years ago

@gznofeng I think it's because of FULLSCREEN_MODE

https://github.com/douban-f2e/CardKit/blob/master/js/cardkit/supports.js#L54 https://github.com/douban-f2e/CardKit/blob/master/js/component/mo/browsers.js#L33 https://github.com/douban-f2e/CardKit/blob/master/js/cardkit/app.js#L511

One solution is to write your own main.js (build script):

// some configuration

require([
    'dollar', 
    'cardkit/supports',
    'cardkit/app'
], function($, supports, app){
    supports.FULLSCREEN_MODE = false;
    app.init({
        root: $('.ck-root')
    });
});
gznofeng commented 11 years ago

ths,resoleve