In the first video, the user should not be able to scroll since the text height does not exceed the height of the controls group.
{F1981959}
Here the text height exceeds the controls height. According to the code "onAttributeLoad" the control height should be adjusted to the text height, but that doesn't seem to work properly.
{F1981960}
Code used to set control height according to text. Does not seem to work properly (See 2nd Video)
//attributeLoad://
```
_control = (_this controlsGroupCtrl 101) controlsGroupCtrl 100;
_control ctrlSetText gettext (_config >> 'title');
_control ctrlcommit 0;
_control = (_this controlsGroupCtrl 101) controlsGroupCtrl 102;
_control ctrlSetStructuredText parseText gettext (_config >> 'description');
_controlPos = ctrlposition _control;
_controlPos set [3,(_controlPos select 3) max (ctrltextheight _control)];
_control ctrlsetposition _controlPos;
_control ctrlcommit 0;
```
There seems to be another issue I have just discovered. Out of the box this control should support structured text but it doesn't seem to properly parse the text.
If I set the following text into the attribute config as description property like so:
```
class Test
{
collapsed = 1;
displayName = "Test";
class Attributes
{
class Test
{
description = "Disable AI Features. See <a href='https://community.bistudio.com/wiki/disableAI'>disable AI command documentation</a> to learn more.";
data = "AttributeSystemSubcategory";
control = "SubCategoryNoHeader2";
};
class Test2
{
displayName = "Test Attribute";
property = "Test";
control = "Edit";
defaultValue = "Test";
};
};
};
```
It will not parse the text. E.g, the link will not be formatted correctly. However, this properly displays the text:
```
hint parseText "Various AI Skill Settings. See <a href='https://community.bistudio.com/wiki/Arma 3 AI Skill'>Arma 3 AI Skill</a> to learn more."
```
```
_display = findDisplay 46 createDisplay "RscDisplayEmpty";
_text = _display ctrlCreate ["RscStructuredText", -1]; _text ctrlSetPosition [0,0,1,0.1];
_text ctrlSetBackgroundColor [0,0,0,1];
_text ctrlCommit 0;
_text ctrlSetStructuredText parseText "Disable AI Features. See <a href='https://community.bistudio.com/wiki/disableAI'>disable AI command documentation</a> to learn more.";
```