mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 23:40:38 +01:00
dont change height if sizing horizontally #1508
This commit is contained in:
@@ -172,6 +172,9 @@ define(['taskbar', 'string', 'sounds'], function(taskbar, S, sounds) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
chatModal.find('.modal-content').on('resize', function(event, ui) {
|
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 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 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);
|
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() {
|
Sockets.getConnectedClients = function() {
|
||||||
var clients = io.sockets.clients();
|
|
||||||
var uids = [];
|
var uids = [];
|
||||||
|
if (!io) {
|
||||||
|
return uids;
|
||||||
|
}
|
||||||
|
var clients = io.sockets.clients();
|
||||||
|
|
||||||
clients.forEach(function(client) {
|
clients.forEach(function(client) {
|
||||||
if(client.uid && uids.indexOf(client.uid) === -1) {
|
if(client.uid && uids.indexOf(client.uid) === -1) {
|
||||||
uids.push(client.uid);
|
uids.push(client.uid);
|
||||||
|
|||||||
Reference in New Issue
Block a user