diff --git a/manager/display.lua b/manager/display.lua index 50209cb..a18ead3 100644 --- a/manager/display.lua +++ b/manager/display.lua @@ -446,9 +446,11 @@ local function buildMainPage() btnX = btnX + #tostring(amt) + 4 end - -- Attach to device + -- Attach to device (must resize to recompute all child dimensions + -- from the monitor device, since Page:postInit defaulted to UI.term) mainDevice.currentPage = mainPage mainPage.parent = mainDevice + mainPage:resize() mainPage:setParent() mainPage:enable() end @@ -886,6 +888,7 @@ local function buildSmelterPage() -- Attach to device smelterDevice.currentPage = smelterPage smelterPage.parent = smelterDevice + smelterPage:resize() smelterPage:setParent() smelterPage:enable() end