<NME> Fullscreen.js
<BEF> define([
  'jquery'
], function ($) {
  var Fullscreen = function (context) {
    var self = this;
    var $editor = context.layoutInfo.editor;
    var $toolbar = context.layoutInfo.toolbar;
    var $editable = context.layoutInfo.editable;
    var $codable = context.layoutInfo.codable;

    var $window = $(window);
    var $scrollbar = $('html, body');

    this.resizeTo = function (size) {
      $editable.css('height', size.h);
      $codable.css('height', size.h);
      if ($codable.data('cmeditor')) {
        $codable.data('cmeditor').setsize(null, size.h);
      }
    };

    this.onResize = function () {
      self.resizeTo({
        h: $window.height() - $toolbar.outerHeight()
      });
    };

    /**
     * toggle fullscreen
     */
    this.toggle = function () {
      $editor.toggleClass('fullscreen');
      if (this.isFullscreen()) {
        $editable.data('orgHeight', $editable.css('height'));
        $window.on('resize', this.onResize).trigger('resize');
        $scrollbar.css('overflow', 'hidden');
      } else {
        $window.off('resize', this.onResize);
        this.resizeTo({ h: $editable.data('orgHeight') });
        $scrollbar.css('overflow', 'visible');
      }

      context.invoke('toolbar.updateFullscreen', this.isFullscreen());
    };

    this.isFullscreen = function () {
      return $editor.hasClass('fullscreen');
    };
  };

  return Fullscreen;
});

<MSG> fixed toolbar widht at fullscreen

<DFF> @@ -1,52 +1,53 @@
 define([
-  'jquery'
+    'jquery'
 ], function ($) {
-  var Fullscreen = function (context) {
-    var self = this;
-    var $editor = context.layoutInfo.editor;
-    var $toolbar = context.layoutInfo.toolbar;
-    var $editable = context.layoutInfo.editable;
-    var $codable = context.layoutInfo.codable;
+    var Fullscreen = function (context) {
+        var self = this;
+        var $editor = context.layoutInfo.editor;
+        var $toolbar = context.layoutInfo.toolbar;
+        var $editable = context.layoutInfo.editable;
+        var $codable = context.layoutInfo.codable;
 
-    var $window = $(window);
-    var $scrollbar = $('html, body');
+        var $window = $(window);
+        var $scrollbar = $('html, body');
 
-    this.resizeTo = function (size) {
-      $editable.css('height', size.h);
-      $codable.css('height', size.h);
-      if ($codable.data('cmeditor')) {
-        $codable.data('cmeditor').setsize(null, size.h);
-      }
-    };
+        this.resizeTo = function (size) {
+            $editable.css('height', size.h);
+            $codable.css('height', size.h);
+            if ($codable.data('cmeditor')) {
+                $codable.data('cmeditor').setsize(null, size.h);
+            }
+        };
 
-    this.onResize = function () {
-      self.resizeTo({
-        h: $window.height() - $toolbar.outerHeight()
-      });
-    };
+        this.onResize = function () {
+            self.resizeTo({
+                h: $window.height() - $toolbar.outerHeight()
+            });
+        };
 
-    /**
-     * toggle fullscreen
-     */
-    this.toggle = function () {
-      $editor.toggleClass('fullscreen');
-      if (this.isFullscreen()) {
-        $editable.data('orgHeight', $editable.css('height'));
-        $window.on('resize', this.onResize).trigger('resize');
-        $scrollbar.css('overflow', 'hidden');
-      } else {
-        $window.off('resize', this.onResize);
-        this.resizeTo({ h: $editable.data('orgHeight') });
-        $scrollbar.css('overflow', 'visible');
-      }
+        /**
+        * toggle fullscreen
+        */
+        this.toggle = function () {
+            $editor.toggleClass('fullscreen');
+            if (this.isFullscreen()) {
+                $editable.data('orgHeight', $editable.css('height'));
+                $window.on('resize', this.onResize).trigger('resize');
+                $scrollbar.css('overflow', 'hidden');
+                $toolbar.css({width: '100%'});
+            } else {
+                $window.off('resize', this.onResize);
+                this.resizeTo({ h: $editable.data('orgHeight') });
+                $scrollbar.css('overflow', 'visible');
+            }
 
-      context.invoke('toolbar.updateFullscreen', this.isFullscreen());
-    };
+            context.invoke('toolbar.updateFullscreen', this.isFullscreen());
+        };
 
-    this.isFullscreen = function () {
-      return $editor.hasClass('fullscreen');
+        this.isFullscreen = function () {
+            return $editor.hasClass('fullscreen');
+        };
     };
-  };
 
-  return Fullscreen;
+    return Fullscreen;
 });

fixed toolbar widht at fullscreen