BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lvgl
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
lvgl
Commits
030719f5
Commit
030719f5
authored
Jan 10, 2017
by
Gabor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LV_RECT_LAYOUT_PRETTY: if there is only 1 obj in row align it to the middle
parent
1dc04388
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lv_rect.c
lv_objx/lv_rect.c
+2
-2
No files found.
lv_objx/lv_rect.c
View file @
030719f5
...
...
@@ -554,7 +554,7 @@ static void lv_rect_layout_pretty(lv_obj_t * rect)
child_rc
=
child_rs
;
/*Initially the the row starter and closer is the same*/
while
(
child_rs
!=
NULL
)
{
cord_t
h_row
=
0
;
cord_t
w_row
=
style
->
hpad
*
2
;
/*The width is
minimum
the left-right hpad*/
cord_t
w_row
=
style
->
hpad
*
2
;
/*The width is
at least
the left-right hpad*/
uint32_t
obj_num
=
0
;
/*Find the row closer object and collect some data*/
...
...
@@ -582,7 +582,7 @@ static void lv_rect_layout_pretty(lv_obj_t * rect)
}
/*If here is only one object in the row then align it to the left*/
else
if
(
obj_num
==
1
)
{
lv_obj_align
(
child_rs
,
rect
,
LV_ALIGN_IN_TOP_
LEFT
,
style
->
hpad
,
act_y
);
lv_obj_align
(
child_rs
,
rect
,
LV_ALIGN_IN_TOP_
MID
,
0
,
act_y
);
}
/* Align the children (from child_rs to child_rc)*/
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment