Rate this article

Position the text counter for the MX Widget Restricted Textarea

Rating: 0.0/5 (0 votes cast)

To reposition the counter to a more suitable position edit the following file;

includes/wdg/classes/RestrictedTextArea.js

Line 42 - 45

    this.container.innerHTML = '<table class="MXW_Spin_table" border="0" cellpadding="0" cellspacing="0"><tr><td class="MXW_Spin_table_td"></td><td class="MXW_Spin_table_td"><div class="MXW_Spin"></div></td></tr></table>';
    this.input.style.margin="-1px 0px";
    this.container.firstChild.rows[0].firstChild.appendChild(this.input);

Changes to:

    this.container.innerHTML = '<table class="MXW_Spin_table" border="0" cellpadding="0" cellspacing="0" style =" margin-top: 10px; margin-left: 120px;"><tr><td class="MXW_Spin_table_td"></td><td class="MXW_Spin_table_td"><div class="MXW_Spin"></div></td></tr></table>';
    //this.input.style.margin="-1px 0px";
    //this.container.firstChild.rows[0].firstChild.appendChild(this.input);


Adobe

Free PositiveSSL and WhoisGuard with Every Domain Purchase
XMS Systems
ionCube Online PHP Encoder

Although we try to ensure all the articles submitted are valid it is your responsibility to make sure you have backups before you use these suggestions on your pc or websites.
We do not take any responsibility for any data-loss, loss in functionality or any problem that might arise in what-ever way or form by making use of the information on this site.

"Friends of Interakt" has no connection to the Adobe Interakt Company