Skip to content

Commit

Permalink
yay scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuller committed Dec 1, 2018
1 parent ec1b2ca commit 5d94d1b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dominos_Config/panels/profiles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ do
profileBrowser.container = container

local viewport = Addon.ScrollableContainer:New(profileBrowser)
viewport:SetPoint('TOPLEFT', profileBrowser)
viewport:SetPoint('BOTTOMRIGHT', profileBrowser)
viewport:SetAllPoints(profileBrowser)
viewport:SetChild(container)
profileBrowser.viewport = viewport

Expand Down Expand Up @@ -284,7 +283,7 @@ do

local height = (#self.buttons * self.buttons[1]:GetHeight()) + #self.buttons * self.buttonPadding
self.container:SetSize(width, height)
-- self.viewport:SetChild(self.container)
self.viewport:SetChild(self.container)
end

function profileBrowser:GetOrCreateButton(i)
Expand Down Expand Up @@ -326,4 +325,4 @@ do

profileBrowser:SetPoint('TOPLEFT', addProfileButton, 'BOTTOMLEFT', 0, -4)
profileBrowser:SetPoint('BOTTOMRIGHT')
end
end

0 comments on commit 5d94d1b

Please sign in to comment.