AndersDJohnson / AndersDJohnson/magnificent.js

Automatic ratio

Aperta
#13 0 commenti 0 reazioni 1 assegnatario Rivendicata da @AndersDJohnson Vedi su GitHub
enhancement help wanted
Lingua principale
JavaScript
Stelle
165
Fork
45
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Instead of expecting container element to have fixed dimensions that match the content dimensions to maintain proportion, we could attempt to determine the appropriate ratio of the content automatically, e.g. by reading the image dimensions. This could be done real-time to accommodate changes post-initialization.
This might solve scaling issues in #7 when going full screen.
It might also be able to replace the `ratio` option when the zoom container is to have different proportion than the thumb container.

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.