few little modifications to make chat working as expected

parent 109a411a
...@@ -25,7 +25,7 @@ skyliveClass.prototype.publicReceived = function(user, msg){ ...@@ -25,7 +25,7 @@ skyliveClass.prototype.publicReceived = function(user, msg){
var newel = document.createElement('p'); var newel = document.createElement('p');
newel.innerHTML="<"+user+"> "+msg; newel.innerHTML="<"+user+"> "+msg;
n.appendChild(newel); n.appendChild(newel);
n.scollTop = n.scrollHeight; n.scrollTop = n.scrollHeight;
} }
} }
}; };
......
...@@ -55,6 +55,7 @@ void JSBridge::pushLogin(QString username, QString password) ...@@ -55,6 +55,7 @@ void JSBridge::pushLogin(QString username, QString password)
void JSBridge::resizeWin(int width, int height) void JSBridge::resizeWin(int width, int height)
{ {
std::cout << "resizeWin called from JS" << std::endl;
wwin->resize(width, height); wwin->resize(width, height);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment