ScrollFrame:SetScrollChild() flaw

#0 - Feb. 28, 2007, 1:20 a.m.
Blizzard Post
When you use ScrollFrame:SetScrollChild(frame), the frame object is tied to ScrollFrame visually. That is to say, the scroll-arrows will move the ScrollChild up and down.

However, SetScrollChild() does not tie frame to ScrollFrame logically. That is to say, frame is not returned by the GetChildren() method of ScrollFrame.

The end result (and the bug) is that although calling ScrollFrame:Hide() will remove frame and its children from the screen, frame's children CAN STILL BE CLICKED.

I discovered this in conjunction with the Faction Grinder addon. Since I moved a set of checkboxes and other objects into the ScrollChild of a ScrollFrame, my users have been complaining of being able to click checkboxes even when they are hidden.

Seems that the best results would be obtained if SetScrollChild() internally called SetParent() on the item you pass to it.
#1 - Feb. 28, 2007, 1:50 a.m.
Blizzard Post
This looks like something for the UI/macro froums.