cancel
Showing results for 
Search instead for 
Did you mean: 

Enable a function to run on orientation change on mobile.

When developing responsive apps, there are situations where it would be useful to be able to run a function on orientation change.
e.g. OnChangeOrientation or OnChangeLayout.


Take for example, a container with a Height property that is based indirectly on the dynamic font size of the elements it contains.

If the font size of the contained elements is set to different values depending on screen orientation, the container height will not necessarily be modified accordingly when the screen orientation is changed.
(This may be specific to my own situation where I am also loading font sizes dynamically according to user customizations, but there will be other examples.)

 

If there were an OnChangeOrientation event that could trigger a function, we could make adjustments accordingly.

Status: New