Oh, I have forgot. Is there a possibility to get the device-with in my
js:Application? So that I can set the layout specific for the device which is 
using my page?

I found something like this:

<meta name="viewport" content="width=device-width, initial-scale=1.0, 
user-scalable=no“>

or this

var width = (window.innerWidth > 0) ? window.innerWidth : screen.width;

Bit it seems that, window or screen is not a valid variable in flexJS or can I 
even set meta tag
from the js:Application preinitialize function?

Sorry for so many questions, but I really want create a perfect working 
web-page which is created with flexJS.

Thanks

Marcus

> Am 11.12.2015 um 18:46 schrieb Alex Harui <[email protected]>:
> 
> Are you trying to get the app to resize as the browser changes size?
> 
> If so, try adding the BrowserResizeListener bead to the Application's beads.
> 
> -Alex
> 
> From: Marcus Fritze 
> <[email protected]<mailto:[email protected]>>
> Reply-To: "[email protected]<mailto:[email protected]>" 
> <[email protected]<mailto:[email protected]>>
> Date: Friday, December 11, 2015 at 6:35 AM
> To: "[email protected]<mailto:[email protected]>" 
> <[email protected]<mailto:[email protected]>>
> Subject: [FlexJS] How can I set css values for <html> and <body> of the 
> generated html file?
> 
> When I set the height of ViewBase to 100% , this height isn’t actually 100% 
> (visible) in the generated HTML file.
> 
> It generates:
> 
> <div id="viewBase" style="display: block; position: relative; width: 100%; 
> height: 100%; padding: 10px; background-color: rgb(255, 0, 0);“>
> 
> I recognized, that the 100% height is only working, when <html> and <body> 
> has also "height:100%“ in style.
> 
> So how can I set this style in my mxml file? I tried with
> 
> 
> @namespace html5 "library://ns.apache.org/flexjs/html5";
> 
> html5|html, html5|body{
> 
>    height: 100%;
> 
> }
> 
> But this produces some compiler error. It looks like this namespace isn’t 
> working in my IntelliJ. I don’t know why.
> 
> 
> Thanks
> 
> Marcus

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to