From dc62b597a99b8bc1866400366a340347b8fc12b9 Mon Sep 17 00:00:00 2001 From: trustable-code Date: Tue, 19 Sep 2017 19:07:38 +0200 Subject: Change Control's default width/height mode from "Expand" to "Static" "Expand" as default made problems in same cases. It should be overwritten anyway. --- src/nigui.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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() -- cgit v1.2.3