Skip to content
This repository has been archived by the owner on Nov 18, 2019. It is now read-only.

Fix IE11 display issue #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/signature.js
Expand Up @@ -14,7 +14,7 @@ angular.module('signature').directive('signaturePad', ['$interval', '$timeout',
return {
restrict: 'EA',
replace: true,
template: '<div class="signature" style="width: 100%; max-width:{{width}}px; height: 100%; max-height:{{height}}px;"><canvas style="display: block; margin: 0 auto;" ng-mouseup="onMouseup()" ng-mousedown="notifyDrawing({ drawing: true })"></canvas></div>',
template: '<div class="signature" style="width: 100%; height: 100%" ng-style="{\'max-width\': width + \'px\', \'max-height\':height + \'px\'}"><canvas style="display: block; margin: 0 auto;" ng-mouseup="onMouseup()" ng-mousedown="notifyDrawing({ drawing: true })"></canvas></div>',
scope: {
accept: '=?',
clear: '=?',
Expand Down