Hello, everyone
I think, I found the problem.
When I set the grow layout to the object, the object.w_layout or object.h_layout properties of the object are set
First, the parent has a flex column and the child has the grow-layout so obj.h_layout = 1
When I rotate the display, the flex column is changed to row flex and we’ll have obj.w_layot =1
.
Therefore both the obj.h_layout and the obj.w_layout are set to 1, On the other hand, when both the h_layout and w_layout are set, we can’t resize the obj. for example when the flex is flex row, I want to set the height of the object
for solving this problem when I want to rotate the display, I reset the obj.h_layout and obj.w_layout in my code. But I think this should be fixed in the LVGL code.
Maybe by changing to this:
if(f->row) {
item->w_layout = 1;
item->h_layout = 0;
} else {
item->h_layout = 1;
item->w_layout = 0;
}
@kisvegabor, what do you think? If you agree I can send a PR.