diff --git a/app/assets/javascripts/app/controllers/_channel/chat.coffee b/app/assets/javascripts/app/controllers/_channel/chat.coffee index 03cc96272..0fa62b067 100644 --- a/app/assets/javascripts/app/controllers/_channel/chat.coffee +++ b/app/assets/javascripts/app/controllers/_channel/chat.coffee @@ -69,7 +69,7 @@ class App.ChannelChat extends App.Controller # reset zoom @chat.css('transform', "") - @demo.css('width', "") + @browser.css('width', "") @chat.removeClass('is-fullscreen') @iframe.css transform: "" @@ -80,7 +80,7 @@ class App.ChannelChat extends App.Controller if width < @demo.width() @chat.addClass('is-fullscreen') - @demo.css('width', "#{ width }px") + @browser.css('width', "#{ width }px") else percentage = @demo.width()/width @chat.css('transform', "scale(#{ percentage })") diff --git a/app/assets/javascripts/app/views/channel/chat.jst.eco b/app/assets/javascripts/app/views/channel/chat.jst.eco index 6ba7f138d..8f5a3932a 100644 --- a/app/assets/javascripts/app/views/channel/chat.jst.eco +++ b/app/assets/javascripts/app/views/channel/chat.jst.eco @@ -7,17 +7,23 @@
<%- @T('You can embedd this widget into your web page to allow visitors to directly chat with you.') %>