*/}}
Browse Source

reduce heightcoeff

YimingWu 1 month ago
parent
commit
54516da74c
3 changed files with 3 additions and 3 deletions
  1. 1 1
      example_viewer.c
  2. 1 1
      luajit.c
  3. 1 1
      widgets.c

+ 1 - 1
example_viewer.c

@@ -76,7 +76,7 @@ static void ExamplesCleanUp(){
         laShowItemFull(uil,c,0,"EXAMPLE_open_source_code",0,instructions,0,0);\
         laEndRow(uil,row);\
         laShowSeparator(uil,c);\
-        laShowItem(uil,c,This,"base.code")->Extra->HeightCoeff=-2;\
+        laShowItem(uil,c,This,"base.code")->Extent=-2;\
     }laElse(uil,bu);{\
         row=laBeginRow(uil,c,0,0);\
         char instructions[256]; sprintf(instructions,"text=Launch \"%s\";program=%s",ei->Name->Ptr,ei->Path->Ptr);\

+ 1 - 1
luajit.c

@@ -68,7 +68,7 @@ void* myget_Data(void* unused, void* unused1){
 
 void MyPanel(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laColumn *UNUSED, int context){
     laColumn* c=laFirstColumn(uil);
-    laShowItemFull(uil,c,0,"data.code",LA_WIDGET_STRING_MULTI,0,0,0)->Extra->HeightCoeff=-3;
+    laShowItemFull(uil,c,0,"data.code",LA_WIDGET_STRING_MULTI,0,0,0)->Extent=-3;
     laShowItem(uil,c,0,"MY_call_luajit");
 }
 

+ 1 - 1
widgets.c

@@ -50,7 +50,7 @@ void Widgets(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laColum
     laShowLabel(uil,cl,"String editor:",0,0)->Flags|=LA_TEXT_ALIGN_RIGHT; laShowItem(uil,cr,0,"la.example_string")->Flags|=LA_TEXT_ONE_LINE;
     laShowLabel(uil,cl,"Color picker:",0,0)->Flags|=LA_TEXT_ALIGN_RIGHT;  laShowItem(uil,cr,0,"la.themes.color");
     laShowLabel(uil,cl,"Multi-line string:",0,0)->Flags|=LA_TEXT_ALIGN_RIGHT;
-    laShowItemFull(uil,cr,0,"la.example_string",LA_WIDGET_STRING_MULTI,0,0,0)->Extra->HeightCoeff=5;
+    laShowItemFull(uil,cr,0,"la.example_string",LA_WIDGET_STRING_MULTI,0,0,0)->Extent=5;
     laShowSeparator(uil,c);
 
     laShowLabel(uil,cl,"This is a 3D viewer",0,0);