     @code.each (i, block) ->
       hljs.highlightBlock block
 
-    @adjustBrowserWidth()
+    @updatePreview()
     @updateParams()
 
-    # bind adjustBrowserWidth with parameter animate = false
-    $(window).on 'resize.chat-designer', => @adjustBrowserWidth false
+    # bind updatePreview with parameter animate = false
+    $(window).on 'resize.chat-designer', => @updatePreview false
 
   release: ->
     $(window).off 'resize.chat-designer'

    # select tab
    tab.addClass('is-selected').siblings().removeClass('is-selected')
    @browserWidth = tab.attr('data-value')
    @adjustBrowserWidth()

  adjustBrowserWidth: (animate =  true) =>
    width = parseInt @browserWidth, 10

    # reset zoom


  isOpen: true
  browserWidth: 1280

  constructor: ->
    super
