# Video-single canvas didn't resize after the viewport size was changed

**URL:** <https://devforum.zoom.us/t/video-single-canvas-didnt-resize-after-the-viewport-size-was-changed/91127>\
**Category:** Web\
**Created:** [June 30, 2023, 11:27am UTC](https://devforum.zoom.us/t/video-single-canvas-didnt-resize-after-the-viewport-size-was-changed/91127 "2023-06-30T11:27:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thanh.huynh](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@thanh.huynh](https://devforum.zoom.us/u/thanh.huynh)\
**Post date:** [June 30, 2023, 11:27am UTC](https://devforum.zoom.us/t/video-single-canvas-didnt-resize-after-the-viewport-size-was-changed/91127/1 "2023-06-30T11:27:59Z")

</div>

Hello,

I’m testing the latest sample app  
I opened App.tsx and change /video to VideoSingle  
I run the web  
I turn on my camera  
I resize my Chrome window  
The canvas didn’t change it sharp  
The problem did not happen with video.tsx only happen with video-single.tsx

Video web SDK: 1.7.10  
Browser: Chrome 114

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [June 30, 2023, 2:54pm UTC](https://devforum.zoom.us/t/video-single-canvas-didnt-resize-after-the-viewport-size-was-changed/91127/2 "2023-06-30T14:54:38Z")

</div>

Hi @thanh.huynh ,

I ran the application as you described above but was not able to reproduce the issue as my canvas did resize appropriately. Could you attach a screenshot of what you’re seeing?

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![thanh.huynh](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@thanh.huynh](https://devforum.zoom.us/u/thanh.huynh)\
**Post date:** [June 30, 2023, 5:21pm UTC](https://devforum.zoom.us/t/video-single-canvas-didnt-resize-after-the-viewport-size-was-changed/91127/3 "2023-06-30T17:21:11Z")

</div>

You should able to reproduce that  
Note that you need to use the VideoSingle not the default Video component  
Here is the screenshots:

 ![s1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/d/eda79ce2a91172f705625aa34b2e75fd863119f5.jpeg)  
 ![s2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/5/c510ac337681cc06285cd96fa26123a7e8778653.png)

You see that the canvas didn’t change  
It should become smaller after I change the window size. But it didn’t

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [July 3, 2023, 1:23am UTC](https://devforum.zoom.us/t/video-single-canvas-didnt-resize-after-the-viewport-size-was-changed/91127/4 "2023-07-03T01:23:32Z")

</div>

Hey @thanh.huynh

Thanks for your feedback.

We will improve the sample app code later.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 8, 2023, 1:27pm UTC](https://devforum.zoom.us/t/video-single-canvas-didnt-resize-after-the-viewport-size-was-changed/91127/8 "2023-08-08T13:27:47Z")

</div>

Closed on August 8, 2023, 1:27pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
