fix: column break to be created only if section break is not hidden

This commit is contained in:
Anand Doshi 2012-03-01 13:51:51 +05:30
parent bd8c251127
commit ab39ce8d0d

View file

@ -393,7 +393,7 @@ _f.Frm.prototype.setup_fields_std = function() {
sec = fld;
// default col-break after sec-break
if((f.fieldtype=='Section Break')&&(fl[i+1])&&(fl[i+1].fieldtype!='Column Break')) {
if((f.fieldtype=='Section Break')&&(fl[i+1])&&(fl[i+1].fieldtype!='Column Break')&&!f.hidden) {
var c = this.layout.addcell();
$y(c.wrapper, {padding: '8px'});
}