View Single Post
07-21-17, 06:43 PM   #14
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,881
Originally Posted by guema View Post
Try to remove this condition and i think you will have the same
Code:
if width < 0.5 then width = 0.5 end
With mine (using inventorian) it hides my entire bag frame with the exception of the stack counters but no performance/visual glitch.
I changed the code a little too:
Code:
	width = width * value
	if width < 0.5 then 
		if frame.hidden then return end
		frame:Hide()
		frame.hidden = true
	else
		frame:SetWidth(width)
		if frame.hidden then 
			frame:Show()
			frame.hidden = nil
		end
	end
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 07-21-17 at 06:47 PM.
  Reply With Quote