Quantcast

Text widget intersecting wasn't working

Scott Sibley [09-17-10 - 23:07]
Text widget intersecting wasn't working
Filename
Modules/Text.lua
diff --git a/Modules/Text.lua b/Modules/Text.lua
index 2f885ff..84d693a 100644
--- a/Modules/Text.lua
+++ b/Modules/Text.lua
@@ -281,14 +281,12 @@ local intersectUpdate = function()
 	if frame and frame ~= UIParent and frame ~= WorldFrame then
 		for k, widget in pairs(mod.texts) do
 			if widget.config.intersect then
-				if environment.Intersect(widget.frame, frame, widget.config.intersectxPad1 or widget.config.intersectPad or 0, widget.config.intersectyPad1 or widget.config.intersectPad or 0, widget.config.intersectxPad2 or widget.config.intersectPad or 0, widget.config.intersectyPad2 or widget.config.intersectPad or 0) then
+				if environment.Intersect(frame, widget.frame, widget.config.intersectxPad1 or widget.config.intersectPad or 0, widget.config.intersectyPad1 or widget.config.intersectPad or 0, widget.config.intersectxPad2 or widget.config.intersectPad or 0, widget.config.intersectyPad2 or widget.config.intersectPad or 0) then
 					widget.hidden = true
-					widget.frame.fontstring:Hide()
-					widget:Stop()
-				elseif not environment.Intersect(widget.frame, frame, widget.config.intersectxPad1 or widget.config.intersectPad or 0, widget.config.intersectyPad1 or widget.config.intersectPad or 0, widget.config.intersectxPad2 or widget.config.intersectPad or 0, widget.config.intersectyPad2 or widget.config.intersectPad or 0) and widget.hidden then
+					widget.frame:Hide()
+				elseif not environment.Intersect(frame, widget.frame, widget.config.intersectxPad1 or widget.config.intersectPad or 0, widget.config.intersectyPad1 or widget.config.intersectPad or 0, widget.config.intersectxPad2 or widget.config.intersectPad or 0, widget.config.intersectyPad2 or widget.config.intersectPad or 0) and widget.hidden then
 					widget.hidden = false
 					widget.frame:Show()
-					widget:Start()
 				end
 			end
 		end