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) {
// add this to the correct place in items.
-
-
// 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 = [];
//Roo.log([info.items_n, info.position, this.items.length]);
},
-
+ 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)
{
// we will default to modal-body-overflow - might need to remove or make optional later.
var bdy = {
- cls : 'modal-body enable-modal-body-overflow ',
+ cls : 'modal-body ' + (this.fitwindow ? 'overflow-auto' : ''),
html : this.html || ''
};
* Breadcrumb Nav
*
*/
+Roo.namespace('Roo.bootstrap.breadcrumb');
/**
* @param {Object} config The config object
*/
-Roo.namespace('Roo.bootstrap.breadcrumb');
Roo.bootstrap.breadcrumb.Nav = function(config){
Roo.bootstrap.breadcrumb.Nav.superclass.constructor.call(this, config);
{
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'
});
template : {
tag: 'div',
- cls: 'datepicker dropdown-menu roo-dynamic',
+ cls: 'datepicker dropdown-menu roo-dynamic shadow',
cn: [
{
tag: 'div',