Skip to content

Commit 76c4144

Browse files
committed
fix ipv6 address truncation
1 parent e9bcdc5 commit 76c4144

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

internal/native/eez/jetkvm.eez-project

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@
12511251
"type": "LVGLLabelWidget",
12521252
"left": 0,
12531253
"top": 0,
1254-
"width": 194,
1254+
"width": 98,
12551255
"height": 17,
12561256
"customInputs": [],
12571257
"customOutputs": [],
@@ -1266,8 +1266,8 @@
12661266
"identifier": "HomeInfoIPv6Addr",
12671267
"leftUnit": "%",
12681268
"topUnit": "%",
1269-
"widthUnit": "content",
1270-
"heightUnit": "content",
1269+
"widthUnit": "%",
1270+
"heightUnit": "px",
12711271
"children": [],
12721272
"widgetFlags": "CLICK_FOCUSABLE|GESTURE_BUBBLE|PRESS_LOCK|SCROLLABLE|SCROLL_CHAIN_HOR|SCROLL_CHAIN_VER|SCROLL_ELASTIC|SCROLL_MOMENTUM|SCROLL_WITH_ARROW|SNAPPABLE",
12731273
"hiddenFlagType": "literal",
@@ -1277,10 +1277,17 @@
12771277
"states": "",
12781278
"useStyle": "LabelFont16",
12791279
"localStyles": {
1280-
"objID": "64467adf-a093-484d-b5cf-b70c5be5264f"
1280+
"objID": "64467adf-a093-484d-b5cf-b70c5be5264f",
1281+
"definition": {
1282+
"MAIN": {
1283+
"DEFAULT": {
1284+
"text_align": "LEFT"
1285+
}
1286+
}
1287+
}
12811288
},
12821289
"groupIndex": 0,
1283-
"text": "fe80::ffff:ffff:ffff:ffff:ffff:ffff",
1290+
"text": "fe80::ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
12841291
"textType": "literal",
12851292
"longMode": "DOT",
12861293
"recolor": false

internal/native/eez/src/ui/screens.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,11 @@ void create_screen_home_screen() {
325325
lv_obj_t *obj = lv_label_create(parent_obj);
326326
objects.home_info_ipv6_addr = obj;
327327
lv_obj_set_pos(obj, LV_PCT(0), LV_PCT(0));
328-
lv_obj_set_size(obj, LV_SIZE_CONTENT, LV_SIZE_CONTENT);
328+
lv_obj_set_size(obj, LV_PCT(98), 17);
329329
lv_label_set_long_mode(obj, LV_LABEL_LONG_DOT);
330330
add_style_label_font16(obj);
331-
lv_label_set_text(obj, "fe80::ffff:ffff:ffff:ffff:ffff:ffff");
331+
lv_obj_set_style_text_align(obj, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN | LV_STATE_DEFAULT);
332+
lv_label_set_text(obj, "fe80::ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff");
332333
}
333334
{
334335
// HomeInfoMACAddr

internal/native/lib/libjknative.a

20 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)