| Numéro d’ID de bogue |
BUG-000135688 |
| Envoi | November 24, 2020 |
| Dernière modification | June 5, 2024 |
| S’applique à | ArcGIS API for JavaScript |
| Version trouvée | 4.17 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | 10.0 |
| Statut | Non-Reproducible
Ce problème n’a pas pu être reproduit au cours des tests réalisés par l’équipe de développement. Ce statut peut être attribué aux problèmes qui sont impossibles à reproduire ou qui ne sont plus d’actualité dans une version de développement du logiciel, alors qu’aucun correctif spécifique n’a été installé pour résoudre le problème. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
|
Informations supplémentaires
The code appears to be the issue.
If the user zooms in or out after the original test app loads, the text appears to be fine.
https://codepen.io/lxie/pen/QWEeroL?editors=1000
If the user adds a delay before adding the second polygon graphic, the text appears fine.
https://codepen.io/noash/pen/wvzzByO
Solution de contournement
To add a graphic to the view for the second time, use Graphic.clone() to create a deep clone of the graphic object, and add the clone to the view instead.
- Graphic.clone(): https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#clone
Étapes pour reproduire