Variable wraps in a header frame

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
Hrudeep
Jr. Propeller Head
Posts: 5
Joined: Tue Nov 05, 2024 2:08 am

Variable wraps in a header frame

Post by Hrudeep »

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.
Variable wraps.JPG
Any suggestions to keep it unwrapped?



Hrudeep
You do not have the required permissions to view the files attached to this post.
AlexFox
Sr. Propeller Head
Posts: 241
Joined: Thu Oct 19, 2017 1:56 am

Re: Variable wraps in a header frame

Post by AlexFox »

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?
Hrudeep
Jr. Propeller Head
Posts: 5
Joined: Tue Nov 05, 2024 2:08 am

Re: Variable wraps in a header frame

Post by Hrudeep »

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
robdocsmith
Sr. Propeller Head
Posts: 263
Joined: Thu May 24, 2018 3:11 pm
Location: Queensland, Australia

Re: Variable wraps in a header frame

Post by robdocsmith »

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
Jr. Propeller Head
Posts: 5
Joined: Tue Nov 05, 2024 2:08 am

Re: Variable wraps in a header frame

Post by Hrudeep »

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
Hrudeep
Jr. Propeller Head
Posts: 5
Joined: Tue Nov 05, 2024 2:08 am

Re: Variable wraps in a header frame

Post by Hrudeep »

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
Hrudeep
Jr. Propeller Head
Posts: 5
Joined: Tue Nov 05, 2024 2:08 am

Re: Variable wraps in a header frame

Post by Hrudeep »

robdocsmith 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
Thanks for taking the time to suggest these solutions :D

Hrudeep
Post Reply