Hey guys, so I’m trying to write my app so that is is screen size independent, but am running into a problem. On the iPad I’m having trouble positioning things. I’ve noticed if I create a square that is 45x45 and put it at (display.actualContentWidth, 0), it is not there. But if I do display.actualContentWidth - 45, it does not show the full square. Additionally, if I print out display.actualContentWidth, it gives me 360. But as I knew it, the iPad is 768px wide. When I position things with display.screenOriginX + 45 it works fine, but when I add it to a scroll view with these options, it is not positioned correctly.
local scrollView = widget.newScrollView { left = display.screenOriginX, top = display.screenOriginY, width = display.actualContentWidth, height = display.actualContentHeight, bottomPadding = 95, id = "onBottom", horizontalScrollDisabled = true, verticalScrollDisabled = false, isLocked = false, backgroundColor = {255, 255, 255, 0}, }
What am I missing?