|
@@ -6,7 +6,7 @@ local function onTabClick(tab)
|
6
|
6
|
tab.tabBar:selectTab(tab)
|
7
|
7
|
end
|
8
|
8
|
|
9
|
|
-local function updateMargins(tabBar, ignored)
|
|
9
|
+local function updateMargins(tabBar)
|
10
|
10
|
if #tabBar.tabs == 0 then return end
|
11
|
11
|
|
12
|
12
|
local currentMargin = 0
|
|
@@ -309,8 +309,11 @@ function UIMoveableTabBar:moveTab(tab, units)
|
309
|
309
|
end
|
310
|
310
|
|
311
|
311
|
function UIMoveableTabBar:onStyleApply(styleName, styleNode)
|
312
|
|
- if styleNode['moveable'] then
|
313
|
|
- self.tabsMoveable = styleNode['moveable']
|
|
312
|
+ if styleNode['movable'] then
|
|
313
|
+ self.tabsMoveable = styleNode['movable']
|
|
314
|
+ end
|
|
315
|
+ if styleNode['tab-spacing'] then
|
|
316
|
+ self:setTabSpacing(styleNode['tab-spacing'])
|
314
|
317
|
end
|
315
|
318
|
end
|
316
|
319
|
|