fixing widget alignment on window resize