fixed #1482 error windows should have a scroll bar

I fixed "#1482 error windows should have a scroll bar". please check