This scenario occurs when generating a PDF output.
A variable whose value is 4 words long will wrap after the third word when the variable is inserted in the header frame and place the last word on the next line as a line break. It shows the wrapping when the variable is inserted in the Frame Contents pane. The word is wrapped even if the variable is defined in the variable set using the format [%=VariableSetName.VariableName%]
The same variable however does not wrap when inserted in a normal topic.
I've attached a screenshot. The word (Web) is seen on the next line.
Any suggestions to keep it unwrapped?
Hrudeep
Variable wraps in a header frame
Variable wraps in a header frame
You do not have the required permissions to view the files attached to this post.
Re: Variable wraps in a header frame
Seems like an obvious question, but how wide is the header frame? If it's clearly wide enough for the variable, then is there any other content in the frame, or is the variable in another container such as a div with a fixed width?
Re: Variable wraps in a header frame
The frame is big enough, because when a different variable is inserted instead of the troubling one it gets inserted without wrapping. No, the variable is not in a div.
Hrudeep
Hrudeep
-
- Sr. Propeller Head
- Posts: 263
- Joined: Thu May 24, 2018 3:11 pm
- Location: Queensland, Australia
Re: Variable wraps in a header frame
Where I'd be looking for answers:
What's the difference between the two variables?
Does the header frame explicitly state a dimension large enough to hold the variable?
Does the header frame extend right across the page or is it only partial page width?
Does the frame include padding, or does the style of the contained text include margin or padding that could invisibly hinder display?
Can you use your browser inspect tool to see what is going on at that point?
Cheers,
Rob
What's the difference between the two variables?
Does the header frame explicitly state a dimension large enough to hold the variable?
Does the header frame extend right across the page or is it only partial page width?
Does the frame include padding, or does the style of the contained text include margin or padding that could invisibly hinder display?
Can you use your browser inspect tool to see what is going on at that point?
Cheers,
Rob
Re: Variable wraps in a header frame
Both variables appear the same.
The header frame extends right across the page, and there's no such specified dimension.
There's no padding for the frame or the style of the text.
I deleted the variable and added a new one with the exact same definition as before and now it works and no longer wraps the last word
Thanks,
Hrudeep
The header frame extends right across the page, and there's no such specified dimension.
There's no padding for the frame or the style of the text.
I deleted the variable and added a new one with the exact same definition as before and now it works and no longer wraps the last word
Thanks,
Hrudeep
Re: Variable wraps in a header frame
I solved this by deleting the offending variable and replacing it with a new one with the exact definition. Now it no longer wraps the last word, and works as expected.
Thanks,
Hrudeep
Thanks,
Hrudeep
Re: Variable wraps in a header frame
Thanks for taking the time to suggest these solutionsrobdocsmith wrote: ↑Wed Nov 06, 2024 5:31 pm Where I'd be looking for answers:
What's the difference between the two variables?
Does the header frame explicitly state a dimension large enough to hold the variable?
Does the header frame extend right across the page or is it only partial page width?
Does the frame include padding, or does the style of the contained text include margin or padding that could invisibly hinder display?
Can you use your browser inspect tool to see what is going on at that point?
Cheers,
Rob
Hrudeep