Skip to content

Adjust default label padding on MacOS platform #1844

Answered by cwensley
InfinityGhost asked this question in Q&A
Discussion options

You must be logged in to vote

Hm, I think the biggest issue you might be facing is the default padding for the GroupBox. That, and the width of the numeric entry boxes are relatively larger on macOS (~9 characters wide vs ~7 with Gtk). Unfortunately, Eto's GroupBox sizing calculations are fixed, so adjusting the padding isn't really possible with 2.5.8. That being said, I've just committed a fix in #1858 that allows you to add something like this to adjust the padding/content margins in a GroupBox on macOS:

	Eto.Style.Add<Eto.Mac.Forms.Controls.GroupBoxHandler>(null, h => {
		h.Control.ContentViewMargins = new CGSize(2, 2);
	});

Hope this helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by InfinityGhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants