on textChanged equivalent for buttons pressed?
Posted: Tue Jun 09, 2015 10:44 am
Hi Guys,
Now that I have my applyScrollBars script working almost exactly as I want it, I've put it/called it from the resizeCard handler which activates the scrollbars on my card depending on whether the user has dragged the card is too small to fit in all the content on that card.
I've got various scripts which move positions of objects around my card depending on various states such as when things are being edited verses static information display. I can call the applyScrollBar on each time I press a button to check whether the card needs a scrollbar, however I was wondering whether their was an equivalent of the on textChanged handler which worked when I fired off a button. Ideally I would like the applyScrollBar to be activated after every button (or ideally a list of buttons) had been pressed on that card. I know it will affect performance slightly but I've got to try it out. Alternatively I'll tag my script after every button on my card.
Many thanks
Jalz
Now that I have my applyScrollBars script working almost exactly as I want it, I've put it/called it from the resizeCard handler which activates the scrollbars on my card depending on whether the user has dragged the card is too small to fit in all the content on that card.
I've got various scripts which move positions of objects around my card depending on various states such as when things are being edited verses static information display. I can call the applyScrollBar on each time I press a button to check whether the card needs a scrollbar, however I was wondering whether their was an equivalent of the on textChanged handler which worked when I fired off a button. Ideally I would like the applyScrollBar to be activated after every button (or ideally a list of buttons) had been pressed on that card. I know it will affect performance slightly but I've got to try it out. Alternatively I'll tag my script after every button on my card.
Many thanks
Jalz