Fix the bug that scrollbar rails show when they shouldn't.

Now, the scrollbar rails show even if the content is smaller than the
container. This patch fixes it.