Adding export feature
This commit is contained in:
parent
e24550d054
commit
e7333057f0
7 changed files with 185 additions and 25 deletions
|
|
@ -167,12 +167,13 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
private void AdjustTextWrap()
|
||||
{
|
||||
if (messageContainer != null)
|
||||
if (messageContainer != null
|
||||
&& messageContainer is TextWidget textWidget)
|
||||
{
|
||||
double wrappingSize = contentRow.Width - (contentRow.Padding.Width + messageContainer.Margin.Width);
|
||||
if (wrappingSize > 0)
|
||||
{
|
||||
var wrapper = new EnglishTextWrapping(12 * GuiWidget.DeviceScale);
|
||||
var wrapper = new EnglishTextWrapping(textWidget.PointSize * GuiWidget.DeviceScale);
|
||||
messageContainer.Text = wrapper.InsertCRs(unwrappedMessage, wrappingSize);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue