Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchParapheur
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchParapheur
Commits
202cf1a5
Commit
202cf1a5
authored
3 years ago
by
Hamza HRAMCHI
Browse files
Options
Downloads
Patches
Plain Diff
FIX #18718 TIME 0:15 set signature width
parent
0e58b900
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/frontend/app/signatures/signatures.component.html
+1
-1
1 addition, 1 deletion
src/frontend/app/signatures/signatures.component.html
src/frontend/app/signatures/signatures.component.ts
+2
-6
2 additions, 6 deletions
src/frontend/app/signatures/signatures.component.ts
with
3 additions
and
7 deletions
src/frontend/app/signatures/signatures.component.html
+
1
−
1
View file @
202cf1a5
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<ion-slide
*ngFor=
"let slide of signaturesList;let i=index"
style=
"display: grid;grid-template-columns: repeat(2, 1fr);"
>
<ion-slide
*ngFor=
"let slide of signaturesList;let i=index"
style=
"display: grid;grid-template-columns: repeat(2, 1fr);"
>
<div
style=
"display: contents;"
>
<div
style=
"display: contents;"
>
<ion-card
*ngFor=
"let sign of slide"
class=
"sign-image"
>
<ion-card
*ngFor=
"let sign of slide"
class=
"sign-image"
>
<img
id=
"imgSign_{{i}}"
(click)=
"se
lec
tSignature
(sign
); setSignature
With($event)
"
[src]=
"sanitization.bypassSecurityTrustUrl('data:image/png;base64,' + sign.encodedSignature)"
<img
id=
"imgSign_{{i}}"
(click)=
"setSignature
Width($event
); se
lec
tSignature
(sign);
"
[src]=
"sanitization.bypassSecurityTrustUrl('data:image/png;base64,' + sign.encodedSignature)"
style=
"width: 190px;cursor: pointer;"
>
style=
"width: 190px;cursor: pointer;"
>
<ion-toolbar
style=
"position: absolute;top: 0px;"
>
<ion-toolbar
style=
"position: absolute;top: 0px;"
>
<ion-label
color=
"secondary"
*ngIf=
"sign.substituted"
>
{{'lang.substitutedSignature' | translate}}
</ion-label>
<ion-label
color=
"secondary"
*ngIf=
"sign.substituted"
>
{{'lang.substitutedSignature' | translate}}
</ion-label>
...
...
This diff is collapsed.
Click to expand it.
src/frontend/app/signatures/signatures.component.ts
+
2
−
6
View file @
202cf1a5
...
@@ -119,14 +119,10 @@ export class SignaturesComponent implements OnInit {
...
@@ -119,14 +119,10 @@ export class SignaturesComponent implements OnInit {
}
}
selectSignature
(
signature
:
any
)
{
selectSignature
(
signature
:
any
)
{
let
percentWidth
:
any
;
let
percentWidth
:
any
=
25
;
const
signatureScaling
:
any
=
this
.
authService
.
user
.
preferences
.
signatureScaling
;
const
signatureScaling
:
any
=
this
.
authService
.
user
.
preferences
.
signatureScaling
;
const
signatureWidth
:
number
=
this
.
signatureWidth
>=
this
.
documentWidth
?
100
:
(
this
.
signatureWidth
*
100
)
/
this
.
documentWidth
;
const
signatureWidth
:
number
=
this
.
signatureWidth
>=
this
.
documentWidth
?
100
:
(
this
.
signatureWidth
*
100
)
/
this
.
documentWidth
;
if
(
signatureScaling
===
false
)
{
percentWidth
=
signatureScaling
===
false
?
signatureWidth
:
signatureScaling
;
percentWidth
=
25
;
}
else
{
percentWidth
=
signatureScaling
===
false
?
signatureWidth
:
signatureScaling
;
}
signature
.
width
=
percentWidth
;
signature
.
width
=
percentWidth
;
const
signPosCurrentPage
=
this
.
currentWorflow
.
signaturePositions
.
filter
((
item
:
any
)
=>
item
.
page
===
this
.
signaturesService
.
currentPage
);
const
signPosCurrentPage
=
this
.
currentWorflow
.
signaturePositions
.
filter
((
item
:
any
)
=>
item
.
page
===
this
.
signaturesService
.
currentPage
);
const
signPosOtherPage
=
this
.
currentWorflow
.
signaturePositions
.
filter
((
item
:
any
)
=>
item
.
page
!==
this
.
signaturesService
.
currentPage
);
const
signPosOtherPage
=
this
.
currentWorflow
.
signaturePositions
.
filter
((
item
:
any
)
=>
item
.
page
!==
this
.
signaturesService
.
currentPage
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment