29 - Problem With Moving the Scrolling Table
What is the issue?
I'm having a problem being able to move the scrolling table from the center of my screen. When creating the table, I have my main frame listed as the parent of the table. When my main frame shows, hides, or is rescaled, the scrolling table does the same actions correctly, but it is unmovable from the center on my screen. You're documentation on how to create a scrolling table is excellent and easy to follow, which is making it difficult for me to figure out what I'm doing wrong. I'll copy/paste the pertinent code below. I have a feeling it's something simple I'm just overlooking. What am I missing?
Thanks!
Please provide any additional information below.
Here's the code:
local cols = { { -- col 1 name = "Priority", width = 42, defaultsort = "asc", align = "CENTER", bgcolor = { ["r"] = 0.0, ["g"] = 0.0, ["b"] = 0.0, ["a"] = 1.0, }, }, { -- col 2 name = "iLvl", width = 35, align = "CENTER", bgcolor = { ["r"] = 0.0, ["g"] = 0.0, ["b"] = 0.0, ["a"] = 1.0, }, }, { -- col 3 name = "Item", width = 240, align = "CENTER", bgcolor = { ["r"] = 0.0, ["g"] = 0.0, ["b"] = 0.0, ["a"] = 1.0, }, }, { -- col 4 name = "Difficulty", width = 80, align = "CENTER", bgcolor = { ["r"] = 0.0, ["g"] = 0.0, ["b"] = 0.0, ["a"] = 1.0, }, }, { -- col 5 name = "Instance/Reputation/Point Type/Token", width = 250, align = "CENTER", bgcolor = { ["r"] = 0.0, ["g"] = 0.0, ["b"] = 0.0, ["a"] = 1.0, }, }, { -- col 6 name = "Boss/Reputation Level/Points Needed/Token Location", width = 280, align = "CENTER", bgcolor = { ["r"] = 0.0, ["g"] = 0.0, ["b"] = 0.0, ["a"] = 1.0, }, }, { -- col 7 name = "Note", width = 280, align = "CENTER", bgcolor = { ["r"] = 0.0, ["g"] = 0.0, ["b"] = 0.0, ["a"] = 1.0, }, }, }; local rows = 14 local height = 15 local UpgradeListScrollingTable = LibStub("ScrollingTable"); UpgradeListDBVar.char.SavedOptions.tableUL = UpgradeListScrollingTable:CreateST(cols, rows, height, nil, TableContainer);
From the last line, you can see TableContainer is the frame I made to put the scrolling table in, but the scrolling table remains stationary in the center of my screen.
Thanks again!
- 1 comment
- 1 comment
- Reply
- #1
ddumont May 24, 2011 at 02:52 UTC - 0 likesI have a feeling you aren't binding the two frames together. Check the sdkp mod out for examples. The file to look in is newui