Use fixed sized spinner

This commit is contained in:
James Allen 2014-12-08 17:39:24 +00:00
parent 63ac1093bc
commit 8c40432e18

View file

@ -11,7 +11,7 @@ define [
add: (element) ->
h = element.height()
w = element.width()
size = Math.floor(0.5 * Math.min(h, w))
size = 64
spinner = $('<div class="pdfng-spinner" style="position: absolute; top: 50%; left:50%; transform: translateX(-50%) translateY(-50%);"><i class="fa fa-spinner fa-spin" style="color: #999"></i></div>')
spinner.css({'font-size' : size + 'px'})
element.append(spinner)