diff options
Diffstat (limited to 'radiobutton.go')
-rw-r--r-- | radiobutton.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/radiobutton.go b/radiobutton.go index 3fb36dc2..59947b5e 100644 --- a/radiobutton.go +++ b/radiobutton.go @@ -97,17 +97,6 @@ func (*RadioButton) LayoutFlags() LayoutFlags { return 0 } -func (rb *RadioButton) MinSizeHint() Size { - defaultSize := rb.dialogBaseUnitsToPixels(Size{50, 10}) - textSize := rb.calculateTextSizeImpl("n" + rb.text()) - - // FIXME: Use GetThemePartSize instead of GetSystemMetrics? - w := textSize.Width + int(win.GetSystemMetrics(win.SM_CXMENUCHECK)) - h := maxi(defaultSize.Height, textSize.Height) - - return Size{w, h} -} - func (rb *RadioButton) SizeHint() Size { return rb.MinSizeHint() } |