Fix splitter on window resize