mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
fix all scolls
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user