OO.ui.mixin.FloatableElement.prototype.setHorizontalPosition = function ( position ) {
    if ( [ 'before', 'after', 'start', 'end', 'center' ].indexOf( position ) === -1 ) {
        throw new Error( 'Invalid value for horizontal position: ' + position );
    }
    if ( this.horizontalPosition !== position ) {