Results 1 to 4 of 4

Thread: Render all content to specific div

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2008
    Posts
    209
    Answers
    4

    Default Render all content to specific div

    Hi,

    Is it possible to render all components/Viewport into a specific div. I want to run an app in fullscreen mode but want to have it run from within a certain div-id to integrate it with another framework but have Messageboxes, ActionSheets etc. still be displayed as expected (I saw that if I render the Viewport into a div all those addt. elements will not work/are invisible).

    I tried Viewport.add and renderTo(divid) and this worked great.. but when I try to call then e.g. an ActionSheet etc. it is not shown/rendered correctly? Is there maybe a way to globally force Sencha Touch to a specific div/div id?

    I think it should be possible with Containers (Ext.Container) but how would I do that... setting up the container and adding all relevant items under it? Maybe you have a quick code snippet that would make it clearer?

    thanks,
    Alex

  2. #2
    Sencha Premium Member
    Join Date
    Aug 2008
    Posts
    209
    Answers
    4

    Default

    bump, nobody?

  3. #3
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    Ext.Viewport will render to the body and take up 100% height and width.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  4. #4
    Sencha Premium Member
    Join Date
    Aug 2008
    Posts
    209
    Answers
    4

    Default

    Yeah I saw that.. everything is put into a div with the class "x-container". Is it possible to overwrite that and change it to something else dynamically?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •