Terminal plugin (#2646)

This commit is contained in:
Hzj_jie
2017-04-01 23:50:24 -07:00
committed by Qingping Hou
parent eb641b6abc
commit 339e16636b
8 changed files with 189 additions and 35 deletions

View File

@@ -46,7 +46,7 @@ function ScrollTextWidget:init()
self.v_scroll_bar = VerticalScrollBar:new{
enable = visible_line_count < total_line_count,
low = 0,
high = visible_line_count/total_line_count,
high = visible_line_count / total_line_count,
width = self.scroll_bar_width,
height = self.height,
}