• DPanelList - Strange Cropping...
    5 replies, posted
How do I stop this from happening when I add a "SpawnIcon" to a "DPanelList"? [thumb]http://dl.dropbox.com/u/12861619/Fail.png[/thumb] [thumb]http://dl.dropbox.com/u/12861619/Fail2.PNG[/thumb] It seems to crop off half a line...
Try Icon:SetIconSize(64)
[QUOTE=techtuts0;31968135]Try Icon:SetIconSize(64)[/QUOTE] Nope. Same thing happens. :| [b]Edit:[/b] I fixed it. It seemed the DPanelList wasn't seeing the height properly so I delved into the .lua file for it. I saw that it used the PANEL:GetHeight() function. I then just tried setting each icon's height to it's icon size and that fixed it. I think Garry should probably change the Derma file to check to see if it's a SpawnIcon to stop that happening.
[QUOTE=TalkingGoose;31968322] I fixed it. It seemed the DPanelList wasn't seeing the height properly so I delved into the .lua file for it. I saw that it used the PANEL:GetHeight() function. I then just tried setting each icon's height to it's icon size and that fixed it. I think Garry should probably change the Derma file to check to see if it's a SpawnIcon to stop that happening.[/QUOTE] Erm you could of just sized to contents [url]http://wiki.garrysmod.com/?title=DCheckBoxLabel.SizeToContents[/url]
[QUOTE=ChoclatePancake;31973010]Erm you could of just sized to contents [url]http://wiki.garrysmod.com/?title=DCheckBoxLabel.SizeToContents[/url][/QUOTE] That also cropped them. It thought the icons were smaller than they were.
can u show the which u have fixed it. I have the same problem but I don't really understand what did u do
Sorry, you need to Log In to post a reply to this thread.