chore(style): remove the trailing space from all source files (#3188)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
Nested scrolling
|
||||
Nested scrolling
|
||||
""""""""""""""""
|
||||
|
||||
.. lv_example:: scroll/lv_example_scroll_1
|
||||
@@ -19,15 +19,15 @@ Styling the scrollbars
|
||||
""""""""""""""""""""""""
|
||||
.. lv_example:: scroll/lv_example_scroll_4
|
||||
:language: c
|
||||
|
||||
|
||||
Right to left scrolling
|
||||
""""""""""""""""""""""""
|
||||
.. lv_example:: scroll/lv_example_scroll_5
|
||||
:language: c
|
||||
|
||||
|
||||
Translate on scroll
|
||||
""""""""""""""""""""""""
|
||||
.. lv_example:: scroll/lv_example_scroll_6
|
||||
:language: c
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ panel.set_scroll_snap_x(lv.SCROLL_SNAP.CENTER)
|
||||
panel.set_flex_flow(lv.FLEX_FLOW.ROW)
|
||||
panel.center()
|
||||
|
||||
for i in range(10):
|
||||
for i in range(10):
|
||||
btn = lv.btn(panel)
|
||||
btn.set_size(150, 100)
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ class ScrollExample_3():
|
||||
float_btn.set_style_radius(lv.RADIUS.CIRCLE, 0)
|
||||
float_btn.set_style_bg_img_src(lv.SYMBOL.PLUS, 0)
|
||||
float_btn.set_style_text_font(lv.theme_get_font_large(float_btn), 0)
|
||||
|
||||
|
||||
def float_btn_event_cb(self,e,list):
|
||||
code = e.get_code()
|
||||
float_btn = e.get_target()
|
||||
@@ -32,7 +32,7 @@ class ScrollExample_3():
|
||||
float_btn.move_foreground()
|
||||
|
||||
list_btn.scroll_to_view(lv.ANIM.ON)
|
||||
|
||||
|
||||
scroll_example_3 = ScrollExample_3()
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ def scroll_event_cb(e):
|
||||
cont_y_center = cont_a.y1 + cont_a.get_height() // 2
|
||||
|
||||
r = cont.get_height() * 7 // 10
|
||||
|
||||
|
||||
child_cnt = cont.get_child_cnt()
|
||||
for i in range(child_cnt):
|
||||
child = cont.get_child(i)
|
||||
@@ -20,7 +20,7 @@ def scroll_event_cb(e):
|
||||
diff_y = abs(diff_y)
|
||||
|
||||
# Get the x of diff_y on a circle.
|
||||
|
||||
|
||||
# If diff_y is out of the circle use the last point of the circle (the radius)
|
||||
if diff_y >= r:
|
||||
x = r
|
||||
@@ -56,7 +56,7 @@ cont.set_scrollbar_mode(lv.SCROLLBAR_MODE.OFF)
|
||||
for i in range(20):
|
||||
btn = lv.btn(cont)
|
||||
btn.set_width(lv.pct(100))
|
||||
|
||||
|
||||
label = lv.label(btn)
|
||||
label.set_text("Button " + str(i))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user