Open GoogleCodeExporter opened 9 years ago
PopupEmojiPicker's behavior is similar to MenuButton. Their public interface
should also converge.
We probably don't need to support overriding the anchor element, but setting
the positioning algorithm instead of just the corner would be nice.
/**
* Specify which positioning algorithm to use.
*
* This method is preferred over the fine-grained positioning methods like
* setPositionElement, setAlignMenuToStart, and setScrollOnOverflow. Calling
* this method will override settings by those methods.
*
* @param {goog.positioning.AnchoredPosition} position The position of the
* Menu the button. If the position has a null anchor, we will use the
* menubutton element as the anchor.
*/
goog.ui.MenuButton.prototype.setMenuPosition = function(position) {
if (position) {
this.menuPosition_ = position;
this.positionElement_ = position.element;
}
};
Original comment by pall...@google.com
on 29 Feb 2012 at 11:29
Original issue reported on code.google.com by
pablo.platt@gmail.com
on 21 Feb 2012 at 11:56