[ 
https://issues.apache.org/jira/browse/WEEX-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16253028#comment-16253028
 ] 

ASF GitHub Bot commented on WEEX-99:
------------------------------------

Github user myeveryheart commented on the issue:

    https://github.com/apache/incubator-weex/pull/844
  
    @gubaojian Sorry, dotwe.org don't support entry.js. But you can try this 
like doc
    `
    // entry.js
    import App from './app.vue'
    const meta = weex.requireModule('meta')
    // 配置 viewport 的宽度为 640px
    meta.setViewport({width: 640})
    App.el = '#root'  
    new Vue(App)
    `
    After that, you can see that width sometimes doesn't work.
    By the way, it was known that we should set UI on main thread, which ASYN 
doesn't.


> The setViewport method in WXMetaModule is ASYN right now which makes 
> weexInstance.viewportWidth setted after view created.
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WEEX-99
>                 URL: https://issues.apache.org/jira/browse/WEEX-99
>             Project: Weex
>          Issue Type: Bug
>          Components: iOS
>            Reporter: myeveryheart
>            Assignee: Adam Feng
>         Attachments: 粘贴图片.png, 粘贴图片1.png, 粘贴图片2.png, 粘贴图片3.png
>
>
> The meta module can be used to declare meta information for a single page, 
> such as the viewport of the container.
> It provides a method 'setViewport' to change the viewport of the page.
> But the method is ASYN right now which makes weexInstance.viewportWidth 
> setted after view created.
> The bug is in iOS and Android.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to