       modal.style.paddingTop = "#{referenceBottom}px"
 
 
+  isActive: =>
+    @modal?.classList.contains('js-user-verification--active')
+
+
   prepareForRequest: (type) =>
     @request?.abort()
     @setMessage osu.trans("user_verification.box.#{type}"), true



  success: =>
    @$modal().modal 'hide'
    @modal.classList.remove('js-user-verification--active')




  reposition: =>
    return unless @isActive()

    if osu.isMobile()
      @float(true, @modal)
