1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Allow users to resize the message container

This commit is contained in:
Maximilian Mader 2014-02-27 23:32:16 +01:00
parent c7cd385a14
commit 5abf436b43
2 changed files with 12 additions and 2 deletions

View File

@ -82,7 +82,6 @@ Initialize **Tims Chat**. Bind needed DOM events and initialize data structures.
return false if initialized
initialized = true
messageContainerSize = $('.timsChatMessageContainer').height()
userListSize = $('#timsChatUserList').height()
v.config = config
@ -328,6 +327,8 @@ Toggle fullscreen mode.
$('.dropdownMenu').data 'orientationX', ''
if $(@).data 'status'
messageContainerSize = $('.timsChatMessageContainer').height()
$('html').addClass 'fullscreen'
do $(window).resize
else

View File

@ -145,9 +145,11 @@
}
.timsChatMessageContainer {
min-height: 100px;
height: 300px;
overflow-y: scroll;
overflow-x: hidden;
resize: vertical;
.timsChatMarkContainer {
display: none;
@ -487,7 +489,6 @@
}
}
// TODO
html.fullscreen {
html, body {
padding: 0;
@ -518,6 +519,14 @@ html.fullscreen {
padding-bottom: 0;
}
#tplChat {
#content {
.timsChatMessageContainer {
resize: none;
}
}
}
#main, #content {
padding-top: 0;
border-top: none;