In my mobile web app with Vue, I want to hide my footer when the soft keyboard pops. So I have a little function to test the ratio of window height to window width...
showFooter(){
return h / w > 1.2 || h > 560;
}
...and I declare window.innerHeight/window.innerWidth in my data.
data: { h: window.innerHeight, w: window.innerWidth }
Trouble is, when window.innerHeight changes, my h property doesn't get the new value. How can I watch window.innerHeight ?