fix navbar dropdown window resize bug

fix for issue #11243