self:GetParent():SetVerticalScroll(value);
self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b, 0.5);
self:GetParent():SetVerticalScroll(value);
ScrollFrame_OnLoad(self);
ScrollFrame_OnScrollRangeChanged(self, xrange, yrange);
local scrollbar = _G[self:GetName().."ScrollBar"];
scrollbar:SetValue(offset);
local min;
local max;
min, max = scrollbar:GetMinMaxValues();
if ( offset == 0 ) then
_G[scrollbar:GetName().."ScrollUpButton"]:Disable();
else
_G[scrollbar:GetName().."ScrollUpButton"]:Enable();
end
if ((scrollbar:GetValue() - max) == 0) then
_G[scrollbar:GetName().."ScrollDownButton"]:Disable();
else
_G[scrollbar:GetName().."ScrollDownButton"]:Enable();
end
ScrollFrameTemplate_OnMouseWheel(self, delta);
ScrollFrame_OnLoad(self);
_G[self:GetName().."Top"]:SetPoint("TOPLEFT", _G[self:GetName().."ScrollBar".."ScrollUpButton"], "TOPLEFT", -8, 5);
_G[self:GetName().."Bottom"]:SetPoint("BOTTOMLEFT", _G[self:GetName().."ScrollBar".."ScrollDownButton"], "BOTTOMLEFT", -8, -2);
ScrollFrame_OnLoad(self);
local scrollbar = _G[self:GetName().."ScrollBar"];
scrollbar:SetValue(offset);
local min;
local max;
min, max = scrollbar:GetMinMaxValues();
if ( offset == 0 ) then
_G[scrollbar:GetName().."ScrollUpButton"]:Disable();
else
_G[scrollbar:GetName().."ScrollUpButton"]:Enable();
end
if ((scrollbar:GetValue() - max) == 0) then
_G[scrollbar:GetName().."ScrollDownButton"]:Disable();
else
_G[scrollbar:GetName().."ScrollDownButton"]:Enable();
end
ScrollFrameTemplate_OnMouseWheel(self, delta);
EditBox_ClearFocus(self);
EditBox_ClearHighlight(self);
EditBox_HighlightText(self);
AutoCastShine_OnLoad(self);
ScrollFrame_OnLoad(self);
if ( self.allowedRange and yrange > self.allowedRange + 1 ) then
-- temp fix to jitter scroll (see task 39261)
else
ScrollFrame_OnScrollRangeChanged(self, xrange, yrange);
end
ScrollFrameTemplate_OnMouseWheel(self, delta);