Usermode/AxWin3 - Fiddling with text presentation
[tpg/acess2.git] / Usermode / Applications / axwin3_src / WM / renderers / widget / disptext.c
index 4a091de..4ea4833 100644 (file)
@@ -29,6 +29,10 @@ void Widget_DispText_UpdateText(tElement *Element, const char *Text)
        Element->Text = strdup(Text);
 
        WM_Render_GetTextDims(NULL, Element->Text, &w, &h);
+
+       // Apply edge padding
+       w += 2; h += 2;
+       
        if(Element->Parent && (Element->Parent->Flags & ELEFLAG_VERTICAL)) {
                Element->MinCross = w;
                Element->MinWith = h;

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