Looks like this is a side effect of MOBI-273 refactoring. The original implementation make an incorrect call:
window.addEventListener(orientationEvent, resizeElementHeight('#
{cc.id}
'), false);
Where resizeElementHeight is a function. So as Philip noticed resizeElementHeight() would only get called once and not actually get registered as an event listener. The new code addressed the listener assignment by assigning the function to a variable and passing the variable into window.addEventListener().
The interesting side effect is that resizeElementHeight now only gest called on dom update or on a resize or orientation change. The function should also run on first load to make sure the panel size is correctly calculated.
Looks like this is a side effect of MOBI-273 refactoring. The original implementation make an incorrect call:
window.addEventListener(orientationEvent, resizeElementHeight('#
{cc.id}'), false);
Where resizeElementHeight is a function. So as Philip noticed resizeElementHeight() would only get called once and not actually get registered as an event listener. The new code addressed the listener assignment by assigning the function to a variable and passing the variable into window.addEventListener().
The interesting side effect is that resizeElementHeight now only gest called on dom update or on a resize or orientation change. The function should also run on first load to make sure the panel size is correctly calculated.