Preventing a text box resizing when linked to text field in a dataset

I saw that collapsible text boxes is due to be released but I have the opposite requirement - I want a text box which is linked to a text field in a dataset to stay the same size - not resize depending on the amount of text.

The reason being is that I want a repeater with all the same size regular/hover boxes to remain the same size - just like is seen here https://www.carrcommunications.ie/webinars/#BI_row_1

Am I missing a Wix trick?

Just set the item container height to be bigger than the max text allowed,

Thanks for replying
I did set the container height to be bigger than the existing max size of text which solved my problem for the moment but the dataset text field is updated/created by an end-user & there is no max no of words defined nor can there be. So the problem may well occur at a later date?

I guess a long-winded solution (workaround?) would be to read the text dataset field into an intermediate variable or array & count the number of characters & only display the text up to the limit of whatever size text box I design. Maybe use some vertical scroll or more/less coding?

Just to explain the context - this repeater is to display the short description of each of 11 modules in each of 2 courses. Each module dataset contents will be maintained by an end-user.

The above coding idea of an intermediate array takes away from the simplicity of a repeater being filled directly from a dataset & being able to have a “More Info” button which links to a lightbox showing all information for that module

@john-f-kenny
You can do it by VELO

$w.onReady(function () {
$w("#repeaterID").onItemReady(($item, itemData) => {
$item("#repeaterTextID").text = itemData.datasetTextFieldID.substr(0, 120) + "..."; //Limit characters by 120 characters //+ "..." to add ellipsis
$item('#buttonReadMore').onClick(() => { $item("#repeaterTextID").text = itemData.datasetTextFieldID }) //show full text data
    });
})

Look at this post later. There may be possibilities to add this new box in repeater
https://www.wix.com/brettharalson/partnerscommunity/forum/partner-announcements/update-collapsible-text-boxes-beta

@workiapps You’re right, but the JS substr method got deprecated and might not work on some new browser versions, so you should use the substring method instead.

@john-f-kenny yes. Alternatively if you use editorX , you can put the text element inside a scrollable box with fixed height.

@noam345 Thank you so much.