Hello, everyone
I set one of my parent objects to flex layout, and I set flex-grow to one of its children, other children have a fixed size.
when the display is not rotated the object that has a flex-grow layout has the correct size but when the display is rotated the size of the object is wrong.
I think the problem is from the line that is pointed out in the picture. In this line, the size of the cross size is equal to the last grow size of the object.
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: