Usermode/CLIShell - Fixed not catching execve returning
[tpg/acess2.git] / Usermode / Applications / axwin3_src / WM / renderers / widget / textinput.c
index c2eea82..abfb820 100644 (file)
@@ -38,16 +38,19 @@ void Widget_TextInput_Init(tElement *Element)
 
        // TODO: Select font correctly  
        WM_Render_GetTextDims(NULL, "jJ", NULL, &h);
-       
-       if( Element->Parent && (Element->Parent->Flags & ELEFLAG_VERTICAL) )
-               Element->MinWith = h;
-       else
-               Element->MinCross = h;
+
+       h += 2+2;       // Border padding       
+
+       Element->MinH = h;
+       Element->MinW = 4;
+
+       _SysDebug("h = %i", h);
 
        // No need to explicitly update parent min dims, as the AddElement routine does that    
 }
 
 DEFWIDGETTYPE(ELETYPE_TEXTINPUT,
+       WIDGETTYPE_FLAG_NOCHILDREN,
        .Render = Widget_TextInput_Render,
        .Init = Widget_TextInput_Init
        );

UCC git Repository :: git.ucc.asn.au