Fix btnNext left-pad
This commit is contained in:
parent
5fe73663b9
commit
4005b937ee
@ -113,17 +113,21 @@ local function itemList(groups, wBudget, hBudget, savedState, onClick, setPage,
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local padImport = Padding:new{
|
||||||
|
left = math.floor((wBudget - btnPrev:getWidth() - btnNext:getWidth() - btnImport:getWidth())/2),
|
||||||
|
element = btnImport
|
||||||
|
}
|
||||||
|
|
||||||
|
local padNext = Padding:new{
|
||||||
|
left = wBudget - btnPrev:getWidth() - padImport:getWidth() - btnNext:getWidth(),
|
||||||
|
element = btnNext
|
||||||
|
}
|
||||||
|
|
||||||
local tabLine = List:new{
|
local tabLine = List:new{
|
||||||
children = {
|
children = {
|
||||||
btnPrev,
|
btnPrev,
|
||||||
Padding:new{
|
padImport,
|
||||||
left = math.floor((wBudget - btnPrev:getWidth() - btnNext:getWidth() - btnImport:getWidth())/2),
|
padNext
|
||||||
element = btnImport
|
|
||||||
},
|
|
||||||
Padding:new{
|
|
||||||
left = wBudget - btnPrev:getWidth() - btnImport:getWidth() - btnNext:getWidth(),
|
|
||||||
element = btnNext
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
vertical = false
|
vertical = false
|
||||||
}
|
}
|
||||||
@ -247,7 +251,7 @@ local PAGES = {
|
|||||||
print("Importing...")
|
print("Importing...")
|
||||||
-- Safely handle transfers, priming computer for a full reset/rescan in case server stops mid-transaction
|
-- Safely handle transfers, priming computer for a full reset/rescan in case server stops mid-transaction
|
||||||
state:itemTransaction(function()
|
state:itemTransaction(function()
|
||||||
for _,nodeStack in state.node:find(function(s) return not s:isEmpty() end) do
|
for _,nodeStack in ipairs(state.node:find(function(s) return not s:isEmpty() end)) do
|
||||||
if not state.controller:insertStack(nodeStack) then
|
if not state.controller:insertStack(nodeStack) then
|
||||||
print("Couldn't find a free slot for: "..(nodeStack:getDisplayName() or nodeStack:getName() or "[EMPTY]"))
|
print("Couldn't find a free slot for: "..(nodeStack:getDisplayName() or nodeStack:getName() or "[EMPTY]"))
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user