Commit 458cac73 authored by Robert Lyon's avatar Robert Lyon
Browse files

Adjusting the resizable textarea to have max-width (Bug #1434922)



Change-Id: Ic2edf3925712e8c15145a2a94d6aacc0989647c4
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 2a95efc3
...@@ -90,7 +90,7 @@ function PieformTextarea(element, fullwidth) {//{{{ ...@@ -90,7 +90,7 @@ function PieformTextarea(element, fullwidth) {//{{{
// Set wrapper and textarea dimensions // Set wrapper and textarea dimensions
setElementDimensions(this.wrapper, {'h': this.dimensions.h + this.grippie.dimensions.h + 1}); setElementDimensions(this.wrapper, {'h': this.dimensions.h + this.grippie.dimensions.h + 1});
if (!fullwidth) { if (!fullwidth) {
setElementDimensions(this.wrapper, {'w': this.dimensions.w}); jQuery(this.wrapper).css("max-width", this.dimensions.w + "px");
} }
setStyle(this.element, { setStyle(this.element, {
'margin-bottom': '0', 'margin-bottom': '0',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment