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
}