fix all scolls

This commit is contained in:
Peter Maquiran
2024-02-23 11:38:02 +01:00
parent 5a037cee28
commit 5b5c5b7d18
4 changed files with 9 additions and 6 deletions
@@ -2,7 +2,6 @@
<div class="overflow-x-auto d-flex pa-10 attachment-list" style="background-color: #d9d9d9;" *ngIf="showAttachmentList">
{{ taskViewerAttachment | json }}
<div *ngFor="let attachment of taskViewerAttachment; let i = index"
class="ion-no-margin ion-no-padding cursor-pointer attachment-list" class="pa-10 mx-10 card-text"
>
@@ -48,8 +47,7 @@
</div>
<div [ngClass]="{'d-none': draft}" #iframeContainer class="height-100 flex-1" >
</div>
<div [ngClass]="{'d-none': draft}" #iframeContainer class="height-100 flex-1" ></div>
<editor
@@ -50,12 +50,14 @@ export class ViewerAttachmentPage implements OnInit {
}
firstLoad = true
async clickDocument(viewerAttachment: ViewerAttachment, i) {
this.draft = this.isSelectedAttachmentIsDraft(this.taskViewerAttachment[this.selectedIndex])
let count = 0
if(this.selectedIndex == i) {
if(this.selectedIndex == i && !this.firstLoad) {
this.firstLoad = false
return
}
@@ -21,13 +21,13 @@
<ion-content class="d-flex width-100 height-100">
<div class="d-flex height-100 width-100">
<div class="d-flex height-100 width-100 overflow-hidden">
<div class="overflow-y-auto height-100 width-60 visionDesktop-block" style="overflow: hidden; margin-right:20px;">
<app-viewer-attachment *ngIf="mergedArray.length >= 1" [showAttachmentList]=false [selectedIndex]="selectedIndex" [taskViewerAttachment]="mergedArray" class="height-100" ></app-viewer-attachment>
</div>
<div class=" flex-1 d-flex flex-column height-100 d-flex" >
<div class=" flex-1 d-flex flex-column height-100 d-flex overflow-y-auto-desktop" >
<div class="upper-content" >
<div class="content-details">
<div class="mobile-header">
@@ -303,6 +303,9 @@ ion-button{
display: none !important;
}
.overflow-y-auto-desktop {
overflow-y: auto;
}
}