Hi,
I have two buttons inside the strip, one is to expend the content, the other is to collapse the content. The problem is the strip will not collapse. When the content collapse, their long space at the end strip. How can make the strip collapse and expand when I click the buttons?
Thanks
Hello Kenny
A way to solve that would be to set the height of the strip with the content collapsed, the following image has a collapsed text box and a button, when the button is clicked the text box expands as well as the strip, and when the text box collapses the strip collapses as well:
Best
Massa
Thanks Massa, but in edit mode, the collapsed text box will not collapse. The collapse function works on preview mode. I can not set the strip shorter, if the collapse test box is showed in edit mode.
@chansiupang2001 what you can do is set the textbox’s text using code for example:
- get the text inside the text box (in edit mode) to be able of shortening the height of the textbox
- on ready set the textbox’s text as follows:
fullText = "The original value you want to set .."
$w("#text3").text = fullText
and then you carry on with the rest of the code to get your functionalities.
Best
Massa