Skip to content

If a vertical lists has a multiple childs of different heights, the scrollbar thumb does not reach the end of the scrollbar #81

@franlovera1

Description

@franlovera1

Describe the bug
If a vertical lists has a multiple childs of different heights, the scrollbar thumb does not reach the end of the scrollbar when the screen is fully scrolled.
_gx_vertical_list_scroll_info_get() only calculates the scroll maximum correctly if all the childs are the size of list->gx_vertical_list_child_height. If the childs has varying heights, the calculation is incorrect.
A suggested fix would be to iterate though all the childs and add the height of each child one by one:
image

Please also mention any information which could help others to understand
the problem you're facing:

  • What target device are you using? STM MCU
  • Which version of Azure RTOS? 6.3.0
  • What toolchain and environment? clang
  • What have you tried to diagnose or workaround this issue? yes see proposed solution

To Reproduce
Steps to reproduce the behavior:

  1. create a vertical list with childs of different heights.
  2. Add a scroll bar to the vertical lists, set size to relative,
  3. Run code. The scrollbar does not reach the bottom

Expected behavior
When the screen is fully scrolled, the scrollbar thumb does not reach the bottom of the bar.

Impact
What impact does this issue have on your progress (e.g., annoyance, showstopper): annoyance

Logs and console output
If applicable, add console logs or other types of debug information like Wireshark capture as .zip file.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions