Code Duplication    Length = 9-9 lines in 2 locations

public/js/tinymce/themes/modern/theme.js 1 location

@@ 4273-4281 (lines=9) @@
4270
          }
4271
        }, 100);
4272
      }
4273
      function reposition() {
4274
        var i;
4275
        var rect = funcs.getWindowSize();
4276
        var layoutRect;
4277
        for (i = 0; i < windows.length; i++) {
4278
          layoutRect = windows[i].layoutRect();
4279
          windows[i].moveTo(windows[i].settings.x || Math.max(0, rect.w / 2 - layoutRect.w / 2), windows[i].settings.y || Math.max(0, rect.h / 2 - layoutRect.h / 2));
4280
        }
4281
      }
4282
      global$9(window).on('resize', reposition);
4283
    }
4284
    var Window$$1 = FloatPanel.extend({

public/js/tinymce/themes/inlite/theme.js 1 location

@@ 3751-3759 (lines=9) @@
3748
          }
3749
        }, 100);
3750
      }
3751
      function reposition() {
3752
        var i;
3753
        var rect = funcs.getWindowSize();
3754
        var layoutRect;
3755
        for (i = 0; i < windows.length; i++) {
3756
          layoutRect = windows[i].layoutRect();
3757
          windows[i].moveTo(windows[i].settings.x || Math.max(0, rect.w / 2 - layoutRect.w / 2), windows[i].settings.y || Math.max(0, rect.h / 2 - layoutRect.h / 2));
3758
        }
3759
      }
3760
      global$7(window).on('resize', reposition);
3761
    }
3762
    var Window$$1 = FloatPanel.extend({