SizingMargins & ContentMargins

Hi there,

Sorry if this sounds like a stupid question but I am trying to work out what the following parameters do *exactly* in the "button.pushbutton" section of the themes INI files.

I'm presuming that for SizeMargins, the values are (left margin,top margin,right margin,bottom margin)? And likewise for ContentMargins, and that these parameters are used to enable stretching of the button whilst retaining the aspect ratio of the corners. But I'm not sure if I have those parameters in the right order, for example, it could be (top margin,bottom margin,left margin, right margin)?

;Normal button
[button.pushbutton]
bgtype = imagefile
SizingMargins = 8, 8, 9, 9 ;<
6,132 views 2 replies
Reply #1 Top
The correct order is [Left, Right, Top, and Bottom]
This applies on both Sizing and Content. The sizing margins will enable the stretching/tiling of the image while retaining the aspect ratio of the corner and/or edges (as you mentioned)
The content margins will determine the position of the text/icons within the size of the image.