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

Variable Text shifts when changing states

Community Beginner ,
Jul 13, 2023 Jul 13, 2023

Copy link to clipboard

Copied

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

Views

111

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

 

Votes

Translate

Translate

Report

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 Expert ,
Jul 13, 2023 Jul 13, 2023

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

200 which matches the variable assignment

Votes

Translate

Translate

Report

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