Merge pull request #5351 from tsiegleauq/ios-touch-callout

Fix poll results under iOS
This commit is contained in:
Sean 2020-05-06 15:07:34 +02:00 committed by GitHub
commit 1e2395c1e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,12 @@
<!-- Result Chart and legend --> <!-- Result Chart and legend -->
<div class="poll-chart-wrapper" *osPerms="'motions.can_manage_polls'; or: poll.isPublished"> <div class="poll-chart-wrapper" *osPerms="'motions.can_manage_polls'; or: poll.isPublished">
<div class="vote-legend" [routerLink]="pollLink"> <div class="vote-legend" [routerLink]="pollLink">
<div *ngFor="let row of reducedPollTableData" [class]="row.votingOption">
<!-- any (click)-binding in an *ngFor-loop of dynamic length will break the view on iOS.
Therefore, we have to provide the trackBy-function here.
I suppose there would be debug output, but i-devices are not giving any.
The error-handling-service (PR #5131) might be helpful here. Nothing easy to find. -->
<div *ngFor="let row of reducedPollTableData; trackBy: trackByIndex" [class]="row.votingOption">
<os-icon-container [icon]="row.value[0].icon" size="large"> <os-icon-container [icon]="row.value[0].icon" size="large">
{{ row.value[0].amount | parsePollNumber }} {{ row.value[0].amount | parsePollNumber }}
<span *ngIf="row.value[0].showPercent"> <span *ngIf="row.value[0].showPercent">