Attribute Inspector Text Area size

720
3
09-09-2013 05:38 AM
MarkSmith
New Contributor III
Hello,

When editing features in the JS API, I can define an inspection template field type as a text area as follows:
'stringFieldOption': esri.dijit.AttributeInspector.STRING_FIELD_OPTION_TEXTAREA

By default the gives a text area just 2 lines high.  In more modern browsers like Chrome and IE10 you can drag the corner of the Text Area to resize it to see more lines, however we have a lot of users with IE8 and seeing just 2 lines at a time isn't really ideal.

Can anyone please tell me how to specify a height for the Text Area (and maybe a width too)?

Thank you,

Mark.
0 Kudos
3 Replies
JasonZou
Occasional Contributor III
Add below to your CSS file assuming "map" is the id of the map div element. Change width and height as you like.

      #map .atiTextAreaField {
       height: 100px;
       width: 200px;
      }
0 Kudos
MarkSmith
New Contributor III
Yep, that got it, thank you very much,

Mark.
0 Kudos
JasonZou
Occasional Contributor III
You are welcome, Mark. Glad to help. Please consider mark the thread as "Answered" so other people may find it helpful as well. Thanks.
0 Kudos