Permalink
Browse files

Cleaned up DPropertySheet + PropSelect

Prop Select - Adjusted height generation to actually fit the icons to
hide the scrollbar in some cases
DPropertySheet - Cleaned up and added some IsValid checks
ContentHeader - Fixed ContentHeader firing PerformLayout too often
  • Loading branch information...
1 parent 1511fc1 commit 7fab76f2100573587a412cdbcdd5151b696b24f3 @robotboy655 robotboy655 committed May 8, 2016
@@ -22,7 +22,13 @@ end
function PANEL:PerformLayout()
self:SizeToContents()
- self:SetTall( 64 )
+
+end
+
+function PANEL:SizeToContents()
+
+ local w, h = self:GetContentSize()
+ self:SetSize( w + 16, 64 ) -- Add a bit more room so it looks nice as a textbox :)
end
Oops, something went wrong.

0 comments on commit 7fab76f

Please sign in to comment.