diff --git a/src/Classes/ItemsTab.lua b/src/Classes/ItemsTab.lua index 10a6f179e9..2b5c6ca0a5 100644 --- a/src/Classes/ItemsTab.lua +++ b/src/Classes/ItemsTab.lua @@ -1309,6 +1309,14 @@ function ItemsTabClass:Draw(viewPort, inputEvents) -- Update weapon slots in case we got Giant's Blood from somewhere self.slots["Weapon 2"]:Populate() self.slots["Weapon 2 Swap"]:Populate() + + if main.portraitMode then + self.controls.itemList:SetAnchor("TOPRIGHT", self.lastSlot, "BOTTOMRIGHT", 0, 40) + else + self.controls.itemList:SetAnchor("TOPLEFT", self.controls.setManage, "TOPRIGHT", 20, 20) + end + self.controls.craftDisplayItem:SetAnchor("TOPLEFT", main.portraitMode and self.controls.setManage or self.controls.itemList, "TOPRIGHT", 20, main.portraitMode and 0 or -20) + self.anchorDisplayItem:SetAnchor("TOPLEFT", main.portraitMode and self.controls.setManage or self.controls.itemList, "TOPRIGHT", 20, main.portraitMode and 0) self:DrawControls(viewPort) if self.controls.scrollBarH:IsShown() then @@ -1427,10 +1435,6 @@ function ItemsTabClass:UpdateSockets() self.sockets[nodeId].label = "Socket #"..index self.lastSlot = self.sockets[nodeId] end - - if main.portraitMode then - self.controls.itemList:SetAnchor("TOPRIGHT",self.lastSlot,"BOTTOMRIGHT", 0, 40) - end self.initSockets = false end