Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(polls): Keep the original height for options when moving it up and down
Vlad Piersecc37678f3bb36
diff --git a/react/features/polls/components/web/PollCreate.js b/react/features/polls/components/web/PollCreate.jsindex 81875bb814..49c50a89da 100644--- a/react/features/polls/components/web/PollCreate.js+++ b/react/features/polls/components/web/PollCreate.js@@ -116,6 +116,13 @@ const PollCreate = (props: AbstractProps) => {const [ grabbing, setGrabbing ] = useState(null);+ const interchangeHeights = (i, j) => {+ const h = answerInputs.current[i].scrollHeight;++ answerInputs.current[i].style.height = `${answerInputs.current[j].scrollHeight}px`;+ answerInputs.current[j].style.height = `${h}px`;+ };+const onGrab = useCallback((i, ev) => {if (ev.button !== 0) {return;@@ -131,6 +138,7 @@ const PollCreate = (props: AbstractProps) => {});const onMouseOver = useCallback(i => {if (grabbing !== null && grabbing !== i) {+ interchangeHeights(i, grabbing);moveAnswer(grabbing, i);setGrabbing(i);}