Edit due to change in api of scroles

This commit is contained in:
Cooldude2606
2017-12-21 23:05:16 +00:00
parent 44d4923d45
commit f7fee5cb25

View File

@@ -57,7 +57,8 @@ function center._center:callback(frame)
local tab_bar_scroll = tab_bar.add{
type='scroll-pane',
name='tab_bar_scroll',
can_scroll_horizontally=true,
horizontal_scroll_policy='auto-and-reserve-space',
vertical_scroll_policy='never',
direction='horizontal'
}
local tab_bar_scroll_flow = tab_bar_scroll.add{
@@ -73,7 +74,8 @@ function center._center:callback(frame)
local tab_scroll = tab.add{
type ='scroll-pane',
name='tab_scroll',
can_scroll_horizontally=false
horizontal_scroll_policy='never',
vertical_scroll_policy='auto'
}
local first_tab = nil
for name,button in pairs(self.tabs) do