diff --git a/demos/transform/lv_demo_transform.c b/demos/transform/lv_demo_transform.c index 156995259..915673db6 100644 --- a/demos/transform/lv_demo_transform.c +++ b/demos/transform/lv_demo_transform.c @@ -155,7 +155,8 @@ static void slider_event_cb(lv_event_t * e) { lv_obj_t * slider = lv_event_get_target(e); int32_t v = lv_slider_get_value(slider); - lv_obj_set_style_transform_scale(card_to_transform, v, 0); + lv_obj_set_style_transform_scale_x(card_to_transform, v, 0); + lv_obj_set_style_transform_scale_y(card_to_transform, v, 0); } #endif diff --git a/docs/overview/style-props.md b/docs/overview/style-props.md index d1a674bbc..07eb68022 100644 --- a/docs/overview/style-props.md +++ b/docs/overview/style-props.md @@ -120,8 +120,17 @@ Move the object with this value in Y direction. Applied after layouts, aligns an
  • Ext. draw No
  • -### transform_scale -Zoom an objects. The value 256 (or `LV_SCALE_NONE`) means normal size, 128 half size, 512 double size, and so on +### transform_scale_x +Zoom an objects horizontally. The value 256 (or `LV_SCALE_NONE`) means normal size, 128 half size, 512 double size, and so on + + +### transform_scale_y +Zoom an objects vertically. The value 256 (or `LV_SCALE_NONE`) means normal size, 128 half size, 512 double size, and so on