# HG changeset patch
# User Guillermo Gil <guillermo.gil@openbravo.com>
# Date 1396357302 -7200
# Node ID 0f79590951ed5aa38ffc7d5f12f476e785916392
# Parent  5494e746e052bc598b2f6bb16adee4c699accdc4
Fixed issue 26013: Rich Text Field is not displayed properly when colspan is 1

Smartclient sets colSpan by default to fill a whole row, this would not allow to set the colSpan as 1

diff --git a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-richtext.js b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-richtext.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-richtext.js
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-richtext.js
@@ -128,6 +128,9 @@
   // smartclient sets this property by default to true
   // this would not allow to place this component in a column other than the first one
   startRow: false,
+  // smartclient sets this property by default to fill a whole row
+  // this would not allow to set the colSpan to 1
+  colSpan: 1,
   init: function () {
     if (this.initStyle) {
       this.initStyle();
