Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Variable Text shifts when changing states

Community Beginner ,
Jul 13, 2023 Jul 13, 2023

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

TOPICS
Advanced
205
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 13, 2023 Jul 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.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 13, 2023 Jul 13, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 13, 2023 Jul 13, 2023
LATEST

200 which matches the variable assignment

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources