alexcrack / alexcrack/angular-ui-notification

Top plus height position calculation seems wrong

Aperta
#143 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
529
Fork
164
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When I have multiple notifications, that exceed the visible window height, the last one that appears in the column, before moving to the next column is partly cut. This is the original code:
```
if ((top + elHeight) > window.innerHeight) {
position = startTop;
k ++;
j = 0;
}
```
To fix I changed the query to this:
`if ((position + elHeight) > window.innerHeight) {`

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.