From d54f61c8e0414e5836c5858a925f3368b8ffa133 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Tue, 29 Jun 2010 03:46:22 -0400 Subject: [PATCH] Tabs will now remember the scroll position in there respective lists. --- Frame.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Frame.lua b/Frame.lua index 005be0f..9125739 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2228,6 +2228,9 @@ do ScrollBar:SetScript("OnValueChanged", function(self, value, ...) local min_val, max_val = self:GetMinMaxValues() + local current_tab = MainPanel.tabs[addon.db.profile.current_tab] + + current_tab.scroll_value = value if value == min_val then ScrollUpButton:Disable() @@ -2477,7 +2480,7 @@ do end -- The list always starts at the top. ScrollUpButton:Disable() - self.scroll_bar:SetValue(0) + self.scroll_bar:SetValue(current_tab.scroll_value or 0) local recipe_count = current_tab:Initialize(expand_mode) -- 1.7.9.5