From: Alan Knowles Date: Mon, 18 Jan 2021 06:16:00 +0000 (+0800) Subject: sync X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=aee9dc3ad6358f74e5300c0cbac5637cbe7b1d93 sync --- diff --git a/docs/src/Roo_bootstrap_Card.js.html b/docs/src/Roo_bootstrap_Card.js.html index ad93530606..3a19a82470 100644 --- a/docs/src/Roo_bootstrap_Card.js.html +++ b/docs/src/Roo_bootstrap_Card.js.html @@ -584,9 +584,10 @@ var to_items_n = next_to_card ? this.items.indexOf(next_to_card) : 0; + move_card.parent().removeCard(move_card); + var dom = move_card.el.dom; - dom.parentNode.removeChild(dom); dom.style.width = ''; // clear with - which is set by drag. if (next_to_card !== false && next_to_card !== true && next_to_card.el.dom.parentNode) { @@ -612,9 +613,6 @@ // remove Card from items. - var old_parent = move_card.parent(); - - old_parent.items = old_parent.items.filter(function(e) { return e != move_card }); if (this.items.length) { var nitems = []; @@ -640,7 +638,16 @@ }, + removeCard : function(c) + { + this.items = this.items.filter(function(e) { return e != c }); + var dom = c.el.dom; + dom.parentNode.removeChild(dom); + dom.style.width = ''; // clear with - which is set by drag. + c.parentId = false; + + }, /** Decide whether to drop above or below a View node. */ getDropPoint : function(e, n, dd) diff --git a/docs/src/Roo_bootstrap_DateField.js.html b/docs/src/Roo_bootstrap_DateField.js.html index 72b2e90208..a8ec2ef1e4 100644 --- a/docs/src/Roo_bootstrap_DateField.js.html +++ b/docs/src/Roo_bootstrap_DateField.js.html @@ -1083,7 +1083,7 @@ template : { tag: 'div', - cls: 'datepicker dropdown-menu roo-dynamic', + cls: 'datepicker dropdown-menu roo-dynamic shadow', cn: [ { tag: 'div', diff --git a/docs/src/Roo_bootstrap_TriggerField.js.html b/docs/src/Roo_bootstrap_TriggerField.js.html index a4a1aaf952..8d6dd9e509 100644 --- a/docs/src/Roo_bootstrap_TriggerField.js.html +++ b/docs/src/Roo_bootstrap_TriggerField.js.html @@ -482,7 +482,7 @@ trigger.applyTo('my-field'); { this.list = Roo.get(document.body).createChild({ tag: Roo.bootstrap.version == 4 ? 'div' : 'ul', - cls: 'typeahead typeahead-long dropdown-menu', + cls: 'typeahead typeahead-long dropdown-menu shadow', style: 'display:none' });