Garry's Mod Wiki

DColorPalette:SetButtonSize

  DColorPalette:SetButtonSize( number size )

Description

Sets the size of each palette button.

This is best kept to such a number, where this equation would return a whole number:
WidthOfColorPalette / ButtonSize= WholeNumber

If not, there will be ugly whitespace on the right side of the panel.

Arguments

1 number size
Sets the new size