Page MenuHomeFeedback Tracker

Text does not resize to fit window of multi line edit control
Closed, ResolvedPublic

Description

If control is resized after the text was set, the text will not be wrapped by the control.

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Ingame UI
Steps To Reproduce
  1. Execute following code in Eden Editor
disableSerialization; 
   
private _display = findDisplay 313 createDisplay "RscDisplayEmpty"; 

private _edit = _display ctrlCreate ["RscEditMulti", -1]; 
_edit ctrlSetPosition [0,0,0.3,1]; 
_edit ctrlSetBackgroundColor [0,0,0,1]; 
_edit ctrlSetFont "EtelkaMonospacePro";  
_edit ctrlSetFontHeight 0.03; 
_edit ctrlCommit 0; 

private _longestLineWidth = 0;  //Not needed
private _exampleString = "abcdefghijklmnopqrstuvxyz0134567890"; 
private _text = ""; 

for "_lines" from 1 to 20 do // Loop through all lines and find the longest one 
{ 
   _lineText = _exampleString select [round random 35]; 
   _longestLineWidth = _longestLineWidth max (_lineText getTextWidth ["EtelkaMonospacePro", 0.03]);  //Not needed
   _text = _text + _lineText + endl; 
}; 
_edit ctrlSetText _text;
_edit ctrlSetPositionW 0.2;
_edit ctrlCommit 1;
Additional Information

Version 2.01

Event Timeline

R3vo created this task.Oct 29 2020, 4:29 PM
BIS_fnc_KK changed the task status from New to Assigned.
R3vo edited Steps To Reproduce. (Show Details)Oct 29 2020, 7:00 PM
7erra added a subscriber: 7erra.Oct 29 2020, 9:21 PM

Should be fixed in 147001

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Nov 29 2020, 9:39 PM
BIS_fnc_KK added a subscriber: BIS_fnc_KK.
R3vo added a comment.Dec 3 2020, 2:53 PM

Fix confirmed.

LouMontana changed the task status from Assigned to Feedback.Dec 3 2020, 3:16 PM
LouMontana closed this task as Resolved.Feb 24 2021, 2:13 PM