The page object is offset

I created a Page object and several child objects. The last two objects are positioned out of the background.When I use lv_page_scroll_hor function to turn the page, the two chid objects are displayed normally.But when I turn back the page,the position of all chid objects are offset to the right.I don’t know the reason.

Anyone here?

Why no one reply to me :frowning_face:

I am not sure about a solution; I can ask @kisvegabor if he has any ideas. Please keep in mind that this forum runs on a largely volunteer basis.

我觉得你需要提供更多信息以便可以帮助你的人获得更多信息,比如:代码、图片或者视频

1 Like

Please fill the template to provide enough information to investigate your issue.

> ## Important: posts that do not use this template will be ignored or closed.
>
> ## Before posting
> - Get familiar with [Markdown](https://forum.lvgl.io/t/get-familiar-with-markdown/403) to format and structure your post
> - Be sure to update [lvgl](https://github.com/littlevgl/lvgl) from the latest version from the `master` branch.
> - Be sure you have checked the relevant part of the [documentation](https://docs.littlevgl.com/en/html/index.html). **We will not respond in detail to posts where you haven't read the relevant documentation.**
> - If applicable use the [Simulator](https://docs.littlevgl.com/en/html/get-started/pc-simulator.html) to eliminate hardware related issues.
> 
>  *Delete this section if you read and applied the mentioned points.*
  
## Description

###  What MCU/Processor/Board and compiler are you using?

###  What do you want to achieve?

### What have you tried so far?

## Code to reproduce
Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:
```c
/*You code here*/
```