Buttons overlapping scaled images
So i'm working on an iPhone app where I have scaled images next to buttons. My problem is that when I scale the images on click the buttons overlap the scaled image. How can I stop this?
3 Answers
-
Do you want the images to appear over the buttons when they are scaled or do you want to control the max size the images are scaled to?
-
I've managed to make due by adding a button.hide() and button.show() method to the event listener for the images. I'm not sure if there is a better solution but this works for now.
-
Nick F,
I think setting the zIndex value to an integer higher than the rest of the views on screen (if you have set their zIndex value) will resolve your issue. It's a common property for all views. See the imageView documentation page for an example.
Hope this helps
Hal