unexpected behavior of image placement in ios device

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gstrekkie
Posts: 27
Joined: Tue Aug 20, 2013 11:43 pm

unexpected behavior of image placement in ios device

Post by gstrekkie » Sun May 11, 2014 10:09 am

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

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: unexpected behavior of image placement in ios device

Post by Klaus » Sun May 11, 2014 5:04 pm

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

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: unexpected behavior of image placement in ios device

Post by Jellicle » Mon May 12, 2014 4:15 am

You would usually set the resolution in a openstack handler, as well.

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

gstrekkie
Posts: 27
Joined: Tue Aug 20, 2013 11:43 pm

Re: unexpected behavior of image placement in ios device

Post by gstrekkie » Mon May 12, 2014 8:48 pm

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!!!

Post Reply