window resize works reasonable (solves #64)