示例#1
0
 /// <summary>
 /// Sets the position helper object associated with the popup.
 /// </summary>
 /// <param name="position"> A position helper object.</param>
 public void setPosition(goog.positioning.AbstractPosition position)
 {
     this.position_ = position;
     if (this.isVisible())
     {
         this.reposition();
     }
 }
示例#2
0
 /// <summary>
 /// The Popup class provides functionality for displaying an absolutely
 /// positioned element at a particular location in the window. It's designed to
 /// be used as the foundation for building controls like a menu or tooltip. The
 /// Popup class includes functionality for displaying a Popup near adjacent to
 /// an anchor element.
 ///
 /// This works cross browser and thus does not use IE's createPopup feature
 /// which supports extending outside the edge of the brower window.
 /// </summary>
 /// <param name="opt_element">A DOM element for the popup.</param>
 /// <param name="opt_position">A positioning helper
 ///     object.</param>
 public Popup(HTMLElement opt_element = null, goog.positioning.AbstractPosition opt_position = null)
     : base(opt_element)
 {
     position_ = opt_position;
 }