Bug: T168091
Change-Id: Iea714cb9c63d30163f01e35e447684af5f39f3ae
- this.positioned = false;
this.popupTimeoutShow = null;
this.popupTimeoutHide = null;
this.popupTimeoutShow = null;
this.popupTimeoutHide = null;
if ( labelText ) {
this.popupLabel.setLabel( labelText );
if ( labelText ) {
this.popupLabel.setLabel( labelText );
- if ( !this.positioned ) {
- // Recalculate anchor position to be center of the capsule item
- this.popup.$anchor.css( 'margin-left', ( this.$element.width() / 2 ) );
- this.positioned = true;
- }
-
// Set timeout for the popup to show
this.popupTimeoutShow = setTimeout( function () {
this.popup.toggle( true );
// Set timeout for the popup to show
this.popupTimeoutShow = setTimeout( function () {
this.popup.toggle( true );