[Frontend-STFL] Handle invalid heigth/width values when scrolling