diff --git a/src/Classes/ItemsTab.lua b/src/Classes/ItemsTab.lua index c830d9c96a..9a8162b911 100644 --- a/src/Classes/ItemsTab.lua +++ b/src/Classes/ItemsTab.lua @@ -1307,6 +1307,14 @@ function ItemsTabClass:Draw(viewPort, inputEvents) self:UpdateSockets() + 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 self.controls.scrollBarH:Draw(viewPort) @@ -1424,10 +1432,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 end -- Returns the slot control and equipped jewel for the given node ID