Skip to content

Commit

Permalink
Grow textarea #172
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-H committed Oct 24, 2019
1 parent 1825008 commit d3983c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/components/clientconfig/js/mgr/sections/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,14 @@ Ext.extend(ClientConfig.page.Home,MODx.Component,{
};

if (['textarea'].indexOf(field.xtype) !== -1) {
field.anchor = '100%';
field.anchor = '90%';
field.grow = true;
field.growMin = 150;
field.growMax = 800;
}

if (field.xtype == 'richtext') {
field.anchor = '90%';
field.xtype = 'textarea';
rtes.push(field.id);
}
Expand Down
1 change: 1 addition & 0 deletions core/components/clientconfig/docs/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
- Add icon to the menu item (when moved to the top navigation) [#175]
- Make placeholders available for inherited fenom templates [#173, #174]
- Make textarea fields bigger and automatically growing with the content [#172]

ClientConfig 2.2.0-pl
---------------------
Expand Down

0 comments on commit d3983c8

Please sign in to comment.