Usermode/AxWin3 - Reworked widget minimum sizes, fixed bugs
[tpg/acess2.git] / Usermode / Applications / axwin3_src / WM / renderers / widget / disptext.c
index 590945f..dfdb358 100644 (file)
@@ -33,14 +33,8 @@ void Widget_DispText_UpdateText(tElement *Element, const char *Text)
        // Apply edge padding
        w += 2; h += 2;
        
-       if(Element->Parent && (Element->Parent->Flags & ELEFLAG_VERTICAL)) {
-               Element->MinCross = w;
-               Element->MinWith = h;
-       }
-       else {
-               Element->MinWith = w;
-               Element->MinCross = h;
-       }
+       Element->MinW = w;
+       Element->MinH = h;
 
        Widget_UpdateMinDims(Element->Parent);
 }

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