diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-06 23:03:29 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-06 23:03:29 -0400 |
| commit | f5397475469b8e5b7a42d0bbb9bda4bca97f2b8a (patch) | |
| tree | 99c98d83bff2089f3854f7e5750b6376719471e8 /prefsize_windows.go | |
| parent | 84c41112b381700aae6bf3bf59b4143716c75a82 (diff) | |
Set Area's preferred size in the documentation and on Windows and Mac OS X.
Diffstat (limited to 'prefsize_windows.go')
| -rw-r--r-- | prefsize_windows.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/prefsize_windows.go b/prefsize_windows.go index 9e7a81e..17b4088 100644 --- a/prefsize_windows.go +++ b/prefsize_windows.go @@ -79,6 +79,11 @@ var ( // This function runs on uitask; call the functions directly. func (s *sysData) preferredSize() (width int, height int) { + // the preferred size of an Area is its size + if s.ctype == c_area { + return s.areawidth, s.areaheight + } + if msg := stdDlgSizes[s.ctype].getsize; msg != 0 { var size _SIZE |
