I am wondering if anyone else notices that display.content height doesn’t seem to report the correct value? I am testing on android and can’t seem to find the bottom of the screen for object placement. I would ideally be able to dynamically place objects at the bottom of the screen no matter what device it is. Possible? [import]uid: 42417 topic_id: 21998 reply_id: 321998[/import]
display.contentHeight IS what you want to use.
What makes you think it is not returning the right value? [import]uid: 70391 topic_id: 21998 reply_id: 87415[/import]
Well, I’m getting different outcomes on two similar android phones. For example…I am placing a button at the bottom of the screen thus:
My button.y = display.contentheight - 30
And it runs fine on my phone but on the other android the button is almost off screen at the bottom. I would think that the Max y value would be contentheight no matter what the device screen height is no? [import]uid: 42417 topic_id: 21998 reply_id: 87421[/import]
Hmm… Do you have dynamic content scaling in your config.lua? That is the only other thing I can think of. You may have to also subtract display.screenOriginY. See this: http://developer.anscamobile.com/reference/index/displayscreenoriginy [import]uid: 70391 topic_id: 21998 reply_id: 87426[/import]
Very helpful. Thank you! [import]uid: 42417 topic_id: 21998 reply_id: 87440[/import]