react-component / react-component/trigger
The rc-trigger cannot correctly calculate the offset value when the screen resolution is enlarged to 150%
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 391
- Fork
- 245
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
For example, there is a component wrapped in an rc-trigger located on the right edge of the browser, and the trigger point is located on the right edge. Clicking on the trigger point will display the content of the rc-trigger to the right of the trigger point. At this point, the screen will be enlarged to 150%, and the trigger point will still be on the right edge. Clicking on the trigger point will cause the content of the rc-trigger to pop up outside the screen (outside the right screen) instead of on the left.
After analysis, it was concluded that the rc-trigger did not calculate the magnification or reduction factor when calculating the edge width
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riproduci il problema con un rc-trigger allineato al bordo destro del browser mentre lo schermo è impostato su una scala del 150%. Inizia tracciando il calcolo dell'offset utilizzato quando si fa clic sul trigger e confronta il suo comportamento con una scala normale e aumentata. Il lavoro è completato quando il popup rimane all'interno dello schermo invece di aprirsi oltre il bordo destro.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- react, typescript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100