tinymce.full.js
function (x, y) {
        var self = this;

        // TODO: Move this to some global class
        function constrain(value, max, size) {
          if (value < 0) {
            return 0;
          }

          if (value + size > max) {
            value = max - size;
            return value < 0 ? 0 : value;
          }

          return value;
        }

        if (self.settings.constrainToViewport) {
          var viewPortRect = DomUtils.getViewPort(window);
          var layoutRect = self.layoutRect();

          x = constrain(x, viewPortRect.w + viewPortRect.x, layoutRect.w);
          y = constrain(y, viewPortRect.h + viewPortRect.y, layoutRect.h);
        }

        if (self.state.get('rendered')) {
          self.layoutRect({ x: x, y: y }).repaint();
        } else {
          self.settings.x = x;
          self.settings.y = y;
        }

        self.fire('move', { x: x, y: y });

        return self;
      }
function (x, y) {
        var self = this;

        // TODO: Move this to some global class
        function constrain(value, max, size) {
          if (value < 0) {
            return 0;
          }

          if (value + size > max) {
            value = max - size;
            return value < 0 ? 0 : value;
          }

          return value;
        }

        if (self.settings.constrainToViewport) {
          var viewPortRect = DomUtils.getViewPort(window);
          var layoutRect = self.layoutRect();

          x = constrain(x, viewPortRect.w + viewPortRect.x, layoutRect.w);
          y = constrain(y, viewPortRect.h + viewPortRect.y, layoutRect.h);
        }

        if (self.state.get('rendered')) {
          self.layoutRect({ x: x, y: y }).repaint();
        } else {
          self.settings.x = x;
          self.settings.y = y;
        }

        self.fire('move', { x: x, y: y });

        return self;
      }
function ( x , y ) { var self = this ; // TODO: Move this to some global class function constrain ( value , max , size ) { if ( value < 0 ) { return 0 ; } if ( value + size > max ) { value = max - size ; return value < 0 ? 0 : value ; } return value ; } if ( self . settings . constrainToViewport ) { var viewPortRect = DomUtils . getViewPort ( window ) ; var layoutRect = self . layoutRect ( ) ; x = constrain ( x , viewPortRect . w + viewPortRect . x , layoutRect . w ) ; y = constrain ( y , viewPortRect . h + viewPortRect . y , layoutRect . h ) ; } if ( self . state . get ( 'rendered' ) ) { self . layoutRect ( { x : x , y : y } ) . repaint ( ) ; } else { self . settings . x = x ; self . settings . y = y ; } self . fire ( 'move' , { x : x , y : y } ) ; return self ; }
Move to absolute position.

@method moveTo
@param {Number} x Absolute x position.
@param {Number} y Absolute y position.
@return {tinymce.ui.Control} Current control instance.
Move to absolute position .