Skip to content

Commit d87c80f

Browse files
committed
1.0.4
fixed potential issue with location and size not saving correctly
1 parent 8c83ea8 commit d87c80f

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

Config.lua

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ WBL.defaults = {
66
xPos = 0,
77
yPos = 0,
88
relativePoint = "CENTER",
9+
height = 300,
10+
width = 500,
911
timeFormat = 5,
1012
autoOpen = false,
1113
autoclose = false,

Display.lua

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,18 @@ WBL.Display = {}
77

88
function WBL:CreateDisplay()
99
local frame = CreateFrame("Frame", "WarbandBankLog_BaseFrame", UIParent, "WBLBaseFrameTemplate")
10+
frame:ClearAllPoints()
1011
frame:SetPoint(
1112
WBL.db.profile.relativePoint,
1213
UIParent,
13-
WBL.db.profile.relativePoint,
1414
WBL.db.profile.xPos,
1515
WBL.db.profile.yPos
1616
)
17+
frame:SetSize(WBL.db.profile.width, WBL.db.profile.height)
18+
frame.ResizeButton:SetOnResizeStoppedCallback(function()
19+
WBL.db.profile.width, WBL.db.profile.height = frame:GetSize()
20+
end)
21+
1722
function frame:stoppedMoving()
1823
local rel, _, _, xPos, yPos = self:GetPoint()
1924
WBL.db.profile.xPos = xPos

Display.xml

-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ https://raw.githubusercontent.com/Gethe/wow-ui-source/live/Interface/FrameXML/UI
33

44
<Frame name="WBLBaseFrameTemplate" inherits="PortraitFrameTemplate" parent="UIParent" virtual="true" movable="true" resizable="true" clampedToScreen="true" hidden="true" toplevel="true">
55
<Size x="500" y="300"/>
6-
<Anchors>
7-
<Anchor point="CENTER"/>
8-
</Anchors>
96
<Frames>
107
<EditBox parentKey="SearchBox" inherits="SearchBoxTemplate" autoFocus="false" historyLines="1" bytes="64" frameLevel="30">
118
<Size y="22"/>

Warband-Bank-Log.toc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Title: Warband Bank Log
33
## Notes: Provides a log of which character added or removed items/gold from the Warband Bank
44
## Author: Noshei
5-
## Version: 1.0.3
5+
## Version: 1.0.4
66
## SavedVariables: WarbandBankLogDB, WarbandBankLogSettings
77
## AddonCompartmentFunc: WarbandBankLog_OnAddonCompartmentClick
88
## IconTexture: 1505935

0 commit comments

Comments
 (0)