From 5281986205a62e8e70f591a5fef4394214092a6d Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 6 Dec 2013 17:35:05 -0600 Subject: [PATCH 1/2] Bugfix: Explicitly typed button as a button The default type for button is `submit`, which affects all parent forms by calling `submit()` on them. --- src/SignaturePadDirective.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SignaturePadDirective.js b/src/SignaturePadDirective.js index c44d56e..4a590b5 100644 --- a/src/SignaturePadDirective.js +++ b/src/SignaturePadDirective.js @@ -43,8 +43,8 @@ angular.module("ngSignaturePad").directive('signaturePad', function ($window) { replace: true, template: '
' + '
' + - '' + - '' + + '' + + '' + '
' + '
' + '' + @@ -84,4 +84,4 @@ angular.module("ngSignaturePad").directive('signaturePad', function ($window) { } } }; -}); \ No newline at end of file +}); From eeaf9db43ccf380140100c1ffccfdf9b872386c0 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 6 Dec 2013 17:37:22 -0600 Subject: [PATCH 2/2] Bugfix: Expand to fill container, not entire window If this is to be loaded in a modal or as part of a form it should only take up the whole window if that div takes up the whole window. For Example: ```html ``` --- src/signaturePad.css | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/signaturePad.css b/src/signaturePad.css index a73a8d8..1363ee0 100644 --- a/src/signaturePad.css +++ b/src/signaturePad.css @@ -1,5 +1,5 @@ .signature { - position: fixed; + position: relative; left: 10px; border: 1px solid #e8e8e8; background-color: #fff; @@ -13,12 +13,11 @@ .signature-background { background-color: #D3D7DC; - position: fixed; + position: relative; top: 0; left: 0; margin: 0; padding: 0; - z-index: 1001; width: 100%; height: 100%; }