lib-ScrollingTable

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!

  • WoWScrnShot_052111_173938.jpg
    Screenshot to help illustrate ...
User When Change
ddumont Jun 01, 2011 at 12:26 UTC Changed status from New to Waiting
Romious20 May 21, 2011 at 21:44 UTC

Added attachment WoWScrnShot_052111_173938.jpg

Romious20 May 21, 2011 at 21:41 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of ddumont ddumont May 24, 2011 at 02:52 UTC - 0 likes

    I 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

  • 1 comment

Facts

Last updated
Jun 01, 2011
Reported
May 21, 2011
Status
Waiting - Waiting for more information.
Type
Other - Some other kind of issue
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees