1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10: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 return false if initialized
initialized = true initialized = true
messageContainerSize = $('.timsChatMessageContainer').height()
userListSize = $('#timsChatUserList').height() userListSize = $('#timsChatUserList').height()
v.config = config v.config = config
@ -328,6 +327,8 @@ Toggle fullscreen mode.
$('.dropdownMenu').data 'orientationX', '' $('.dropdownMenu').data 'orientationX', ''
if $(@).data 'status' if $(@).data 'status'
messageContainerSize = $('.timsChatMessageContainer').height()
$('html').addClass 'fullscreen' $('html').addClass 'fullscreen'
do $(window).resize do $(window).resize
else else

View File

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