Just curious, are you sure you really want to check if the skin is in the upper or bottom part of the screen?
I mean, besides the skin potentially residing in both areas (e.g. 51% in the upper part and 49% in the bottom part) leading to some possible confusion, judging by your screenshot you only need enough space for the skin expansion (similar to how tooltips switch position when there's not enough space for them in the default direction).
In other words, you might only need to know if (#CURRENTCONFIGY#+#CURRENTCONFIGHEIGHT#)>#SCREENAREAHEIGHT# and if so, position the skin at (#SCREENAREAHEIGHT#-#CURRENTCONFIGHEIGHT#), otherwise keep the skin position aka do nothing. Expanding the skin would always be done normally, towards the bottom of the screen.
I mean, besides the skin potentially residing in both areas (e.g. 51% in the upper part and 49% in the bottom part) leading to some possible confusion, judging by your screenshot you only need enough space for the skin expansion (similar to how tooltips switch position when there's not enough space for them in the default direction).
In other words, you might only need to know if (#CURRENTCONFIGY#+#CURRENTCONFIGHEIGHT#)>#SCREENAREAHEIGHT# and if so, position the skin at (#SCREENAREAHEIGHT#-#CURRENTCONFIGHEIGHT#), otherwise keep the skin position aka do nothing. Expanding the skin would always be done normally, towards the bottom of the screen.
Statistics: Posted by Yincognito — Today, 6:35 am