Roo/bootstrap/MessageBar.js
authorEdward <edward@roojs.com>
Wed, 4 Jun 2014 10:05:23 +0000 (18:05 +0800)
committerEdward <edward@roojs.com>
Wed, 4 Jun 2014 10:05:23 +0000 (18:05 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

Roo/bootstrap/MessageBar.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index a0d211a..450ff87 100644 (file)
@@ -67,7 +67,7 @@ Roo.extend(Roo.bootstrap.MessageBar, Roo.bootstrap.Component,  {
             if (this.style) {
                 cfg.style = this.style;
             }
-            this.el = Roo.get(document.body).createChild(cfg, position);
+            this.el = Roo.get(document.body).createChild(cfg, Roo.select('.bootstrap-sticky-wrap', true).first());
         }
         
         this.el.select('>button.close').on('click', this.hide, this);
index 933bcba..d7a01d9 100644 (file)
@@ -15621,7 +15621,7 @@ Roo.extend(Roo.bootstrap.MessageBar, Roo.bootstrap.Component,  {
             if (this.style) {
                 cfg.style = this.style;
             }
-            this.el = Roo.get(document.body).createChild(cfg, position);
+            this.el = Roo.get(document.body).createChild(cfg, Roo.select('.bootstrap-sticky-wrap', true).first());
         }
         
         this.el.select('>button.close').on('click', this.hide, this);
index 4b4cc52..7ab9a4a 100644 (file)
@@ -335,6 +335,6 @@ this.fireEvent("rowselect",this,A,r);this.fireEvent("selectionchange",this);}},d
 this.fireEvent("rowdeselect",this,A);this.fireEvent("selectionchange",this);},restoreLast:function(){if(this._last){this.last=this._last;}},acceptsNav:function(A,B,cm){return !cm.isHidden(B)&&cm.isCellEditable(B,A);},onEditorKey:function(A,e){var k=e.getKey(),B,g=this.grid,ed=g.activeEditor;if(k==e.TAB){e.stopEvent();ed.completeEdit();if(e.shiftKey){B=g.walkCells(ed.row,ed.col-1,-1,this.acceptsNav,this);}else {B=g.walkCells(ed.row,ed.col+1,1,this.acceptsNav,this);}}else if(k==e.ENTER&&!e.ctrlKey){e.stopEvent();ed.completeEdit();if(e.shiftKey){B=g.walkCells(ed.row-1,ed.col,-1,this.acceptsNav,this);}else {B=g.walkCells(ed.row+1,ed.col,1,this.acceptsNav,this);}}else if(k==e.ESC){ed.cancelEdit();}if(B){g.startEditing(B[0],B[1]);}}});
 //Roo/bootstrap/MessageBar.js
 Roo.bootstrap.MessageBar=function(A){Roo.bootstrap.MessageBar.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.MessageBar,Roo.bootstrap.Component,{html:'',weight:'info',closable:true,getAutoCreate:function(){var A={tag:'div',cls:'alert alert-dismissable alert-messages alert-'+this.weight,cn:[{tag:'span',cls:'message',html:this.html||''}]};if(this.closable){A.cn.push({tag:'button',cls:'close',html:'x'});}return A;},onRender:function(ct,A){Roo.bootstrap.Component.superclass.onRender.call(this,ct,A);if(!this.el){var B=Roo.apply({},this.getAutoCreate());B.id=Roo.id();if(this.cls){B.cls+=' '+this.cls;}if(this.style){B.style=this.style;}
-this.el=Roo.get(document.body).createChild(B,A);}
+this.el=Roo.get(document.body).createChild(B,Roo.select('.bootstrap-sticky-wrap',true).first());}
 this.el.select('>button.close').on('click',this.hide,this);},show:function(){if(!this.rendered){this.render();}
 this.el.show();this.fireEvent('show',this);},hide:function(){this.el.hide();this.fireEvent('hide',this);},update:function(){this.el.select('>.message',true).first().dom.innerHTML=this.html||'';}});