cancel
Showing results for 
Search instead for 
Did you mean: 

How to stretch input field according to its input at runtime

Former Member
0 Kudos

Hi,

My WD APplication includes an InputField element.

The content in it is filled with strings from the backend.

The thing is, that the size of the strings differs dramatically when changing the locale, and therefore I cannot set a fixed width for it.

Is it possible to make the size dynamic, in a way that it will grow/shrink according to the size of the text in it?

I had the same problem with the dropdown list, but It was solved after I removed the fixed size from the property width...

For some reason it is not working for InputField.

Please advise.

Best Regards,

Oren.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Create an attribute and map this to the length property of the inputField.

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

But the property sohuld get the size in pixels. How do I know it? All I can tell is the string length in bytes or chars...