Fix script editor scrollbar disappear issue

- Fix issue #423
- Fix issue #427
- When v_scroll is hiding in text editor, make sure line offset is always 0