HTML5 [SOLVED] Detect if object is out of visible display and resize in mobile browser

N

Nathan Archer

Guest
Hi, working on an app that edits images. I'm trying to figure out how to get the app to detect if an image is going off screen and resize it accordingly.

I get situations like this where half the image is hidden, and I want the image itself resized while the app window itself remains the same.



Any idea how I could detect this and resize it to roughly 16px smaller than where the current window cuts off?
 
N

Nathan Archer

Guest
Figured it out! Display_get_width() and display_get_gui_width()
 
Top