Page 1 of 1

unexpected behavior of image placement in ios device

Posted: Sun May 11, 2014 10:09 am
by gstrekkie
I'm sure i'm missing something stupid at this point but here it goes anyway...

I am placing an image on my stack that I want to make sure is placed all the way at the bottom of the screen. for some reason if I place an answer command prior to the image placement it works as expected, if i comment out the answer command it places it where it wants. here is the code i've been playing with

Code: Select all

on opencard
   
 
   iphoneUseDeviceResolution true
   --answer iphoneDeviceResolution () 
   answer "?"
   
   
   set the top of image "imgToolbar" to  the bottom of me - 90
    set the top of button "Camera" to  the bottom of me - 88
   
end opencard
what am I doing wrong? because I just dont get it at this point. so if anyone can point me in the right direction I'd appreciate it TIA

Re: unexpected behavior of image placement in ios device

Posted: Sun May 11, 2014 5:04 pm
by Klaus
Hi gstrekkie,

did you read up the entry for "iphoneUseDeviceResolution" in the dictionary? 8)

Hint: Just remove that line and it will work out fine nevertheless :D


Best

Klaus

Re: unexpected behavior of image placement in ios device

Posted: Mon May 12, 2014 4:15 am
by Jellicle
You would usually set the resolution in a openstack handler, as well.

Gerry

Re: unexpected behavior of image placement in ios device

Posted: Mon May 12, 2014 8:48 pm
by gstrekkie
Thanks for the replies and your responses prompted me to revisit the manual and apparently the manual said one thing and my brain said another. With that being said I've got it sorted out now and i'm hopefully moving forward, at least until my next brain fart...

Thanks again! happy coding!!!