Btw just so everyone knows the quick search is almost impossible to have a one trick solution for everything. But it should be noted:
Quick Search in navigation won't necessarily change the position all the time depending on the layout but it allows for it to be scrolled.
Default quick search position would not scroll(assuming you have the floating nav on).
I've looked for a really nice solution to fit everyone for every scenario and it's just not easily done.