diff options
| author | trustable-code <krauter.simon@arcor.de> | 2017-09-19 19:07:38 +0200 |
|---|---|---|
| committer | trustable-code <krauter.simon@arcor.de> | 2017-09-19 19:07:38 +0200 |
| commit | dc62b597a99b8bc1866400366a340347b8fc12b9 (patch) | |
| tree | 71a80b5899ce73798978b1af0c1ac9838b2abc02 /src | |
| parent | 97a1f6de78ba55366bad4b9a266f4c0e871aa9f9 (diff) | |
| download | NiGui-dc62b597a99b8bc1866400366a340347b8fc12b9.tar.gz NiGui-dc62b597a99b8bc1866400366a340347b8fc12b9.zip | |
Change Control's default width/height mode from "Expand" to "Static"
"Expand" as default made problems in same cases. It should be
overwritten anyway.
Diffstat (limited to 'src')
| -rwxr-xr-x | src/nigui.nim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nigui.nim b/src/nigui.nim index a62348c..087c139 100755 --- a/src/nigui.nim +++ b/src/nigui.nim @@ -1314,8 +1314,10 @@ proc newControl(): Control = proc init(control: Control) = control.tag = "" - control.fWidthMode = WidthMode_Expand - control.fHeightMode = HeightMode_Expand + control.fWidthMode = WidthMode_Static + control.fHeightMode = HeightMode_Static + control.fWidth = 50 + control.fheight = 50 control.fScrollableWidth = -1 control.fScrollableHeight = -1 control.resetFontFamily() |
