I have a problem with the alignment of text in a textbox (s). I created my slide to have the text left-aligned, the textboxes have references to variables which is set up using a javascript to determine what information is populated inside the variables (See attachement Err2.jpg).
When I publish the course and run it online, it looks like the text inside the textboxes is centre aligned (See attachement Err1.jpg).
Please help as it is putting me behind on my development.
Not sure what you implying, but bear in mind I am but a novice when it comes to js.
There is no leading spaces when i populate the variables.
The alignment affects how i display the exponent part of the text, as i am assuming that the textbox is left aligned and based on user input i determine where the exponent needs to be placed. I am trying to avoid creating fixed textboxes and using trigggers to display them based on a condition, as it becomes messy and hard to maintain.
Sorry to hear that your textboxes aren't left-aligning properly, and thanks for sharing those images!
Are you comfortable with sharing your .story file for testing? You can share it publicly here, or privately with our support engineers here. We'll delete it when we nail down what's going on!
3 Replies
You might have your js populate other variables with the length of each of those strings, and look for leading spaces.
Hi Walt,
Not sure what you implying, but bear in mind I am but a novice when it comes to js.
There is no leading spaces when i populate the variables.
The alignment affects how i display the exponent part of the text, as i am assuming that the textbox is left aligned and based on user input i determine where the exponent needs to be placed. I am trying to avoid creating fixed textboxes and using trigggers to display them based on a condition, as it becomes messy and hard to maintain.
Hi Earl,
Sorry to hear that your textboxes aren't left-aligning properly, and thanks for sharing those images!
Are you comfortable with sharing your .story file for testing? You can share it publicly here, or privately with our support engineers here. We'll delete it when we nail down what's going on!
This discussion is closed. You can start a new discussion or contact Articulate Support.