fix: sort
This commit is contained in:
+3
-3
@@ -201,13 +201,13 @@ function BagFrame:ResizeFrame(currentRow, currentCol, columns)
|
||||
-- Calculate required dimensions based on columns
|
||||
local containerWidth = (columns * (buttonSize + spacing)) + 20
|
||||
local containerHeight = (totalRows * (buttonSize + spacing)) + 20
|
||||
local frameWidth = containerWidth + 30
|
||||
local frameWidth = containerWidth + 20
|
||||
local frameHeight = containerHeight + 100 -- Title (40) + search (30) + footer (30)
|
||||
|
||||
-- Minimum sizes
|
||||
if containerWidth < 200 then
|
||||
containerWidth = 200
|
||||
frameWidth = 230
|
||||
frameWidth = 220
|
||||
end
|
||||
if containerHeight < 150 then
|
||||
containerHeight = 150
|
||||
@@ -219,7 +219,7 @@ function BagFrame:ResizeFrame(currentRow, currentCol, columns)
|
||||
-- Maximum sizes
|
||||
if containerWidth > 800 then
|
||||
containerWidth = 800
|
||||
frameWidth = 830
|
||||
frameWidth = 820
|
||||
end
|
||||
if containerHeight > 600 then
|
||||
containerHeight = 600
|
||||
|
||||
+3
-3
@@ -67,7 +67,7 @@
|
||||
<Anchors>
|
||||
<Anchor point="BOTTOMLEFT">
|
||||
<Offset>
|
||||
<AbsDimension x="20" y="20"/>
|
||||
<AbsDimension x="10" y="20"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
@@ -295,7 +295,7 @@
|
||||
<Anchors>
|
||||
<Anchor point="LEFT">
|
||||
<Offset>
|
||||
<AbsDimension x="15" y="0"/>
|
||||
<AbsDimension x="16" y="0"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
<Anchor point="RIGHT">
|
||||
@@ -373,7 +373,7 @@
|
||||
<!-- Container for item buttons -->
|
||||
<Frame name="$parent_ItemContainer" enableMouse="true">
|
||||
<Size>
|
||||
<AbsDimension x="390" y="480"/>
|
||||
<AbsDimension x="400" y="480"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_SearchBar" x="0" y="-5"/>
|
||||
|
||||
Reference in New Issue
Block a user