Message Boards Message Boards

0
|
123 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How do you stop InputField from expanding to show all text in the field

I recently updated to Mathematica 14 and InputField now behaves differently. I want to paste large amounts of data into an InputField. I want the input field to not expand when I puts large amount of data into it.

Sample Code

DynamicModule[{a},
 (*initial input*)
 a = "This is default text. Copy and paste it many time to see if the \
Input expands.";
 (*input field to play with it.*)
 Column@{
   InputField[Dynamic@a, String, FieldSize -> {{5, 50}, {3, 3}}],
   Dynamic[a]}
 ]

I hoped FieldSize might prevent the growth but it does not. I tried Scrollbar in case it was an undocumented option but it is not.

POSTED BY: Charles Farnum
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract