Is there a way to top align my repeater on each row? It looks fine until the text is pulled in from a collection, and then it moves down.
#repeater #alignment #corvid #code
UPDATE: This issue was solved by adjusting the repeater boxes and moving the title text down to allow more space for new lines.
Just in case: I put my title inside a box container and set the container to the largest height I needed (2 lines worth) + a little extra, If you leave it alone after that and slightly over lap the next element with the little extra it seems to stay put;
I'm also having this problem and can't see how to fix it. Any solutions?
You should make sure that the number of characters displayed in each repeater is the same regardless the number of characters in the database. Utilize the following code snippet to limit your number of characters displayed in the repeater.
export function dataset1_ready() { //allow the dataset to be loaded $w("#repeater1").forEachItem( ($item, itemData, index) => { //loop the function var string = itemData.description; //description is the field name in the database var length = 195; //total amount of words you want to display onscreen var trimmedString = string.substring(0, length); $item("#description").text = String(trimmedString) + '...'; }); }