web: take viewport resize into account