Skip to main content
Participant
July 13, 2023
Question

Variable Text shifts when changing states

  • July 13, 2023
  • 1 reply
  • 191 views

We have dynamic buttons that have changing text when clicked.We would like to use variables for the clicked state, but when you click the button to the new state, the text shifts down and to the right.

So:

Normal - text is $$option_a$$

rollOver - text is $$option_a$$

Down - text is $$option_a$$

Clicked - text is $$option_a_updated$$

It seems to be influenced by the mouse--the text doesn't move until the mouse is moved.

The problem doesn't happen with the state change if text is hard coded, only when variable.

I tried moving disable the button to the top of the code, but this didn't make any difference

This topic has been closed for replies.

1 reply

Participant
July 13, 2023

I should also add that I have shifted the margins on the button to see if that makes any difference, but it does not.

The shift only appears in published or preview content, when editing, everything looks normal.

 

Lilybiri
Legend
July 13, 2023

How many characters did you choose when inserting the variables? The default is 50!

Participant
July 13, 2023

200 which matches the variable assignment