File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ Ext.define ('DEMO.view.OpenConnection', {
30
30
var container = Ext . ComponentQuery . query ( 'panel[title="' + url + '"] > container#messageCt' ) [ 0 ] ;
31
31
var messageBox = container . getEl ( ) . dom . getElementsByClassName ( "messageBox" ) [ 0 ] ;
32
32
messageBox . innerHTML += '> ' + data + '<br/>' ;
33
+ messageBox . scrollTop = messageBox . scrollHeight ;
33
34
} ,
34
35
close : function ( ws ) {
35
36
var panel = Ext . ComponentQuery . query ( 'panel[title="' + url + '"]' ) [ 0 ] ;
@@ -110,6 +111,7 @@ Ext.define ('DEMO.view.OpenConnection', {
110
111
xtype : 'textfield' ,
111
112
anchor : '100%' ,
112
113
fieldLabel : 'URL' ,
114
+ value : 'ws://localhost:9001' ,
113
115
labelAlign : 'top' ,
114
116
listeners : {
115
117
specialKey : function ( tf , evt ) {
You can’t perform that action at this time.
0 commit comments