1100 views

Description

Multiline read-only text fields do not automatically expand.

  • In Chrome/ Firefox, resize option exists, so user can resize the field.
  • In IE11, resize option doesn't exist, and the fields do not automatically expand. This makes the field to appear only in 3 lines, and user has to scroll down/up to read the content.

Steps to Reproduce

 

  1. Login as administrator
  2. Add the Description field on an Incident form.
  3. Open a closed incident record.
  4. Fill with a very long text in the Description field.
  5. Impersonate its "Assigned to" user.
  6. Open that incident from both IE11 and Chrome.

    Notice the resize option to the field exists in Chrome and Firefox.
    Notice the resize option does not exist in IE11. Only three lines are displayed in description, and the user has to scroll up/down to read that text.

Workaround

This problem is under investigation and targeted to be fixed in the London release.

The Client Script below can be created as a workaround:

Table: Task 
Inherited: True 
Script: 

function onLoad() {
try {
if (typeof g_form != 'undefined') {
// if Tabbed Forms is activated, deactivate tabs first to make sure ...
// ... that the style will apply to all the disabled textarea fields
var isTabsActivated = g_tabs2Sections.isActivated();
if (isTabsActivated) {
g_tabs2Sections.deactivate();
}
 
$j("textarea.disabled").each(function () {
this.style.height = (this.scrollHeight+10)+'px';
});
 
// activate Tabbed Forms again after applying the style
if (isTabsActivated) {
g_tabs2Sections.activate();
}
}
} catch(err) {
console.log(err);
}
}

Related Problem: PRB1188317

Seen In

Jakarta Patch 3
Kingston

Fixed In

Jakarta Patch 9
Kingston Patch 6
London

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-09-05 11:17:03
Published:2018-03-01