Page 1 of 1

resize event on footer

Posted: Tue Dec 02, 2014 9:48 pm
by Jason Cheek

How do I capture a resize event on the footer? I have some content I want to always keep between the header and footer, but the footer can expand from a textarea inside it, and so is covering my content.

code
var $footer = $(this).find('[data-role="footer"]');
$footer.on('resize', ... );
/code

Isn't firing when the footer resizes. But it does catch other events like keypress correctly.


resize event on footer

Posted: Wed Dec 03, 2014 3:20 am
by Yurii Orishchuk

Hi Jason,

Unfortunatly there is no such event.

So you should trigger this event yourself.

For example on page show event handler. Or if content of footer changes and height changes two - you can trigger this event or invoke some JS function.

Regards.


resize event on footer

Posted: Wed Dec 03, 2014 10:26 pm
by Jason Cheek

Ok. I was afraid of that. Thanks for the info.