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 {
|
||||
const pwa = window.open(url, RenditionService.TARGET);
|
||||
if (pwa) {
|
||||
// Because of the way chrome focus and close image window vs. pdf preview window
|
||||
if (type === RenditionService.ContentGroup.IMAGE) {
|
||||
pwa.onfocus = () => {
|
||||
pwa.onload = () => {
|
||||
pwa.print();
|
||||
if (type === RenditionService.ContentGroup.IMAGE) {
|
||||
// Because of the way chrome focus and close image window vs. pdf preview window
|
||||
setTimeout(() => {
|
||||
pwa.close();
|
||||
}, 500);
|
||||
};
|
||||
}
|
||||
|
||||
pwa.onload = () => {
|
||||
pwa.print();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@@ -37,6 +37,7 @@
|
||||
|
||||
#{$mat-form-field-infix}:has(.adf-share-link__input) {
|
||||
border-top: 0.9375em solid transparent;
|
||||
border-bottom: 0.9375em solid transparent;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user