feat(style) make transform_zoom use pixel or percentage value

This commit is contained in:
Gabor Kiss-Vamosi
2021-04-18 13:15:48 +02:00
parent 2fb8b672ae
commit 5b4e9fc6f3
6 changed files with 83 additions and 59 deletions

View File

@@ -14,10 +14,13 @@ void lv_example_tabview_1(void)
/*Add content to the tabs*/
lv_obj_t * label = lv_label_create(tab1);
lv_label_set_text(label, "This the first tab\n\n"
lv_label_set_text(label, "This the first tab\n"
"\n"
"\n"
"\n"
"If the content\n"
"of a tab\n"
"becomes too\n"
"becomes\n"
"longer\n"
"than the\n"
"container\n"
@@ -28,7 +31,17 @@ void lv_example_tabview_1(void)
"\n"
"\n"
"\n"
"Can you see it?");
"Here a couple\n"
"of more extra\n"
"line to sure\n"
"the label is long\n"
"enough even on\n"
"large screens.\n"
"\n"
"\n"
"\n"
"Can you see the\n"
"scrollbars?");
label = lv_label_create(tab2);
lv_label_set_text(label, "Second tab");