# Align Text in Scrollable List of ControlP5

**URL:** <https://discourse.processing.org/t/align-text-in-scrollable-list-of-controlp5/42265>\
**Category:** Libraries\
**Created:** [June 22, 2023, 2:26am UTC](https://discourse.processing.org/t/align-text-in-scrollable-list-of-controlp5/42265 "2023-06-22T02:26:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [June 22, 2023, 4:20am UTC](https://discourse.processing.org/t/align-text-in-scrollable-list-of-controlp5/42265/2 "2023-06-22T04:20:52Z")

</div>

Hi

[https://www.reddit.com/r/processing/comments/9wbfb0/is\_there\_no\_alignment\_function\_for\_controlp5/](https://www.reddit.com/r/processing/comments/9wbfb0/is_there_no_alignment_function_for_controlp5/)

> [@Problem with ControlP5, Scrollablelist and align method](https://discourse.processing.org/t/problem-with-controlp5-scrollablelist-and-align-method/1808):
>
> Hi everyone, I have trouble aligning text in a scrollable list in the ControlP5 library. Here is an example : import controlP5.\*; import java.util.\*; ControlP5 cp5; void setup() { size(400, 400); cp5 = new ControlP5(this); List l = Arrays.asList("a", "b", "c", "d", "e", "f", "g", "h"); cp5.addScrollableList("dropdown") .setPosition(100, 100) .setSize(200, 100) .setBarHeight(20) .setItemHeight(20) .addItems(l); cp5.getController("dropdown").getCaptio…

---

_[View the full topic](https://discourse.processing.org/t/align-text-in-scrollable-list-of-controlp5/42265)._
