Hi, fellas.
Not sure why, but I can't seem to get the multi-line edittext element, which appears to work fine in CS6, to work in CC.
The multi-line text-input field, while not without issues, works in CS6
Here's how a dialog containing one appears in CS6:
Note:
- The text aligns to the top, as you'd expect
- Line breaks can be set via the newline \n character while assigning default text to the field in the script or -
- Using the Ctr+Enter (Windows) key combination when inputting new text into the field after running the script.
This, on the other hand, is how the text field appears in CC (2017):
Note:
- The text vertically aligns to the center! Why?
- No matter what I try, I can't seem to accomplish a line break. The aforementioned keyboard shortcut (or its Mac counterpart) does nothing, while the inclusion of the \n character in the default text causes the field to render no text whatsoever (empty field).
Please note that while the second screenshot is from a Mac, the results were identical in Windows.
I'm just wondering what the solution is here.
Thanks.
Here's a code excerpt containing that edittext portion:
var message = createMessage.add('edittext',[0, 0,120, 60], 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\ eiusmod tempor incididunt ut labore et...');