mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Make labels behave more like other objects
This commit is contained in:
parent
d70f07ec43
commit
5d794d16dc
@ -565,6 +565,9 @@ void hasp_new_object(const JsonObject & config, uint8_t & saved_page_id)
|
|||||||
|
|
||||||
case LV_HASP_LABEL: {
|
case LV_HASP_LABEL: {
|
||||||
obj = lv_label_create(parent_obj, NULL);
|
obj = lv_label_create(parent_obj, NULL);
|
||||||
|
if(obj) {
|
||||||
|
lv_label_set_long_mode(obj, LV_LABEL_LONG_CROP);
|
||||||
|
}
|
||||||
/* click area padding */
|
/* click area padding */
|
||||||
// uint8_t padh = config[F("padh")].as<uint8_t>();
|
// uint8_t padh = config[F("padh")].as<uint8_t>();
|
||||||
// uint8_t padv = config[F("padv")].as<uint8_t>();
|
// uint8_t padv = config[F("padv")].as<uint8_t>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user