-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style information is dropped on wrapped lines. #119
Milestone
Comments
Solved in #124 |
I'm actually not sure why the text is wrapping at all. The panel width should be expanding to fit the text. """
tableKM620_options()
Returns a terminal panel with the material information from Table KM-620. Call `print` or `println` on the result to diplay it.
"""
function tableKM620_options()
option_text = RenderableText(join(tableKM620."Material", "\n"), style = "dim")
option_numbers = RenderableText(join(string.(collect(1:option_text.measure.h)), "\n"), style = "dim")
vline = vLine(option_numbers, style = "cyan")
note_text = RenderableText("Ferritic steel includes carbon, low alloy, and alloy steels,\n" *
"and ferritic, martensitic, and iron-based age-hardening stainless steels."
, style = "dim")
note_panel = Panel(note_text,
title = "Note",
style = "cyan")
top_text = TextBox(option_numbers * " " * vline * " " * option_text,
padding = (2, 0, 0, 0))
options_panel = Panel(top_text / note_panel,
title = "Table KM-620 Material Categories",
style = "cyan")
return options_panel
end
"""
yield_options()
Returns a terminal panel with the yield strain calculation options. Call `print` or `println` on the result to diplay it.
"""
function yield_options()
option_text = RenderableText("Use ϵₚ from Table KM-620 as the proportional limit tolerance at yield.\n" *
"Use 0.2% engineering offset strain as the proportional limit tolerance at yield.\n" *
"Specify my own proportional limit tolerance at yield.",
style = "dim")
option_numbers = RenderableText(join(string.(collect(1:option_text.measure.h)), "\n"), style = "dim")
vline = vLine(option_numbers, style = "cyan")
options_panel = Panel(option_numbers * " " * vline * " " * option_text,
title = "Yield Point Calculation Options",
style = "cyan",
padding = (5, 5, 1, 1))
return options_panel
end |
Hey, the |
Merged
It took a while but this will be fixed by the next PR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: