Now it works.
My actual code:
container.style.position = "fixed"; container.style.top = 0; container.style.bottom = 110; container.style.overflowY = "scroll";
It seems it has also fixed the sticky footer issue.
Thank you @cpryland and @kerrishotts.