dont change height if sizing horizontally #1508

v1.18.x
barisusakli 11 years ago
parent c2fb4700de
commit d304bab4f1

@ -172,6 +172,9 @@ define(['taskbar', 'string', 'sounds'], function(taskbar, S, sounds) {
});
chatModal.find('.modal-content').on('resize', function(event, ui) {
if (ui.originalSize.height === ui.size.height) {
return;
}
var totalHeight = chatModal.find('.modal-content').outerHeight() - chatModal.find('.modal-header').outerHeight();
var padding = parseInt(chatModal.find('.modal-body').css('padding-top'), 10) + parseInt(chatModal.find('.modal-body').css('padding-bottom'), 10);
var contentMargin = parseInt(chatModal.find('#chat-content').css('margin-top'), 10) + parseInt(chatModal.find('#chat-content').css('margin-bottom'), 10);

@ -197,8 +197,12 @@ Sockets.in = function(room) {
};
Sockets.getConnectedClients = function() {
var clients = io.sockets.clients();
var uids = [];
if (!io) {
return uids;
}
var clients = io.sockets.clients();
clients.forEach(function(client) {
if(client.uid && uids.indexOf(client.uid) === -1) {
uids.push(client.uid);

Loading…
Cancel
Save