You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#2010 introduced a titleRef prop on CozyDialogs to be able to measure the height of the DialogTitle from outside the component. Unfortunately this does not work consistently in the app coachCO2 where it seems to be measured as 0 when mounting the map, resulting in the map not being perfectly centered. According to https://reactjs.org/docs/hooks-faq.html#how-can-i-measure-a-dom-node , the useEffect hook + titleRef as a parameter combination may not be suitable for this use case. It is not clear if it can be solved on the app side, so we should likely find another way to expose or watch the height.
The text was updated successfully, but these errors were encountered:
#2010 introduced a
titleRef
prop onCozyDialogs
to be able to measure the height of theDialogTitle
from outside the component. Unfortunately this does not work consistently in the appcoachCO2
where it seems to be measured as0
when mounting the map, resulting in the map not being perfectly centered. According to https://reactjs.org/docs/hooks-faq.html#how-can-i-measure-a-dom-node , theuseEffect
hook +titleRef
as a parameter combination may not be suitable for this use case. It is not clear if it can be solved on the app side, so we should likely find another way to expose or watch the height.The text was updated successfully, but these errors were encountered: