Path: blob/trunk/third_party/closure/goog/positioning/abstractposition.js
4084 views
/**1* @license2* Copyright The Closure Library Authors.3* SPDX-License-Identifier: Apache-2.04*/56/**7* @fileoverview Abstract base class for positioning implementations.8*/910goog.provide('goog.positioning.AbstractPosition');1112goog.requireType('goog.math.Box');13goog.requireType('goog.math.Size');14goog.requireType('goog.positioning.Corner');15161718/**19* Abstract position object. Encapsulates position and overflow handling.20*21* @constructor22*/23goog.positioning.AbstractPosition = function() {};242526/**27* Repositions the element. Abstract method, should be overloaded.28*29* @param {Element} movableElement Element to position.30* @param {goog.positioning.Corner} corner Corner of the movable element that31* should be positioned adjacent to the anchored element.32* @param {goog.math.Box=} opt_margin A margin specified in pixels.33* @param {goog.math.Size=} opt_preferredSize PreferredSize of the34* movableElement.35*/36goog.positioning.AbstractPosition.prototype.reposition = function(37movableElement, corner, opt_margin, opt_preferredSize) {};383940