10-06-2013 10:37 AM
When I run this example:
on my DAC, the actionbar gets rendered well above the bottom of the screen. Same goes for my Z10.
If I add traces to print out both the stage.stageWidth and stage.stageHeight, I get something like 500x375 for both devices, but Display.display.getDisplayWidth(0) and Display.display.getDisplayHeight(0) give the correct screen dimensions for both devices. The value I get traced out for actionBar.height does not look right either (101 for the DAC).
Must be something obvious that I'm missing, but I'm tired and at a loss for why this simple API example seems to be misbehaving right out of the box. Any help appreciated.
Solved! Go to Solution.
10-06-2013 10:43 AM - edited 10-06-2013 10:48 AM
Screenshot posted (note that I added the share icon to the example code but it was rendering the same funky way right out of the API example code verbatim):
10-06-2013 11:12 AM
Ok I guess I'm getting closer to the answer but it doesn't make sense yet.
If I explicitly set the dimentions in my [SWF] directive, the ActionBar renders snapped to the bottom of the screen on both devices (I'm hardcoding it to the dimensions of each device before compiling & running ... but ... I thought that that was "doing it wrong") ...
10-07-2013 11:09 AM - edited 10-07-2013 11:14 AM
Gaah. I had just pasted in the example verbatim in a tired state, and forgot to put in the stage alignment and scaling init code:
stage.align = StageAlign.TOP_LEFT; stage.scaleMode = StageScaleMode.NO_SCALE;
Btw the 500x375 stage dimensions are the amxmlc default, which is why I got incorrect values: