There's no way to achieve this with an element with `position: fixed`, flexbox are not useful in this situation :(  By the way I hate as well this hack to make it working, I'm for always CSS solutions.