Use bbox instead of scroll height to fix resizing container block issue.