-
Notifications
You must be signed in to change notification settings - Fork 46
Closed
Labels
browser-renderingIssues where there is an incompatibility between how browser renders the UI and how ReactUnity doesIssues where there is an incompatibility between how browser renders the UI and how ReactUnity does
Milestone
Description
When splitting a text into multiple lines, the <br>
tag is not considered with the line-height parameter.
Syntax tried (note that some are not valid in JSX, but HTML renders them properly)
<span style="line-height: 2rem;">This is multiline<br>text that we comapre</span>
<span style="line-height: 2rem;">This is multiline<br/>text that we comapre</span>
<span style="line-height: 2rem;">This is multiline</br>text that we comapre</span>
<span style="line-height: 2rem;">This is multiline<br></br>text that we comapre</span>
The only syntax that works is variable injected string
<span style="line-height: 2rem;">{`This is multiline
text that we comapre`}</span>
should keep the same properties as a manual break line
More correct result (See #71 for more info about line-height issue)
Metadata
Metadata
Assignees
Labels
browser-renderingIssues where there is an incompatibility between how browser renders the UI and how ReactUnity doesIssues where there is an incompatibility between how browser renders the UI and how ReactUnity does