mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
This commit is contained in:
@@ -257,17 +257,14 @@ export class RenditionService {
|
|||||||
printFile(url: string, type: string): void {
|
printFile(url: string, type: string): void {
|
||||||
const pwa = window.open(url, RenditionService.TARGET);
|
const pwa = window.open(url, RenditionService.TARGET);
|
||||||
if (pwa) {
|
if (pwa) {
|
||||||
// Because of the way chrome focus and close image window vs. pdf preview window
|
pwa.onload = () => {
|
||||||
|
pwa.print();
|
||||||
if (type === RenditionService.ContentGroup.IMAGE) {
|
if (type === RenditionService.ContentGroup.IMAGE) {
|
||||||
pwa.onfocus = () => {
|
// Because of the way chrome focus and close image window vs. pdf preview window
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
pwa.close();
|
pwa.close();
|
||||||
}, 500);
|
}, 500);
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pwa.onload = () => {
|
|
||||||
pwa.print();
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -37,6 +37,7 @@
|
|||||||
|
|
||||||
#{$mat-form-field-infix}:has(.adf-share-link__input) {
|
#{$mat-form-field-infix}:has(.adf-share-link__input) {
|
||||||
border-top: 0.9375em solid transparent;
|
border-top: 0.9375em solid transparent;
|
||||||
|
border-bottom: 0.9375em solid transparent;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user