# Resize Embedded Zoom with Component View in 2.0.1

**URL:** <https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566>\
**Category:** Web\
**Created:** [October 29, 2021, 4:30pm UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566 "2021-10-29T16:30:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![qwong](https://avatars.discourse-cdn.com/v4/letter/q/fbc32d/32.png) [@qwong](https://devforum.zoom.us/u/qwong)\
**Post date:** [October 29, 2021, 4:30pm UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/1 "2021-10-29T16:30:50Z")

</div>

**Description**  
I am working on a branded meeting application that integrates with the Embedded Zoom app (Component View) in 2.0.1. I’m using React + Material UI for my application. I would like to resize the embedded Zoom app so that it fits the entire right hand panel.

 ![zoom_sdk](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/c/bc9c8441473f3ced2b9c9789d4f4c1f3b78921ae.png)

I have seen examples in the forum for CSS and version \< 2.0. However, I have not seen anything with the 2.0.1 Component View. Is it possible to control the CSS with 2.0.1 Component View? If so, please provide some examples.

Thanks!

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [November 1, 2021, 10:59pm UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/2 "2021-11-01T22:59:08Z")

</div>

Hey @qwong,

Thank you for reaching out to the Zoom Developer Forum. If you want to resize that element, you would effectively apply styles to the div where you’ve attached that element. In our example, you would be styling `#meetingSDKElemenent`

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/d/2dc708c369784f1b3713cd824cd5894cc91778ff.png)

I hope that helps! Let me know if you have any questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![Ucchristus](https://avatars.discourse-cdn.com/v4/letter/u/bc79bd/32.png) [@Ucchristus](https://devforum.zoom.us/u/Ucchristus)\
**Post date:** [November 3, 2021, 6:03pm UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/3 "2021-11-03T18:03:24Z")

</div>

Hi, i have a same problem. i don’t control to CSS with 2.0.1 in component. need justify in the box border  
but it does not let me modify the size and neither leave this fixed[photo](https://ibb.co/MRkhQf0)

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [November 5, 2021, 8:34pm UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/4 "2021-11-05T20:34:40Z")

</div>

Hey @Ucchristus,

Are you able to share the CSS rules that you’re using for this? Any code examples should be helpful here.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![rockwellw](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@rockwellw](https://devforum.zoom.us/u/rockwellw)\
**Post date:** [November 10, 2021, 7:04pm UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/5 "2021-11-10T19:04:48Z")

</div>

Even by applying styles in the page itself and using !important this does not work when applied to the element

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [November 15, 2021, 7:48pm UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/6 "2021-11-15T19:48:00Z")

</div>

Hey @rockwellw,

Please share how you are adding these rules to the SDK as well as the rules that you’re using. I’ll work to reproduce the issue and offer any tips that I can.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![rtitvilasi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rtitvilasi/32/32929_2.png) [@rtitvilasi](https://devforum.zoom.us/u/rtitvilasi)\
**Post date:** [November 29, 2021, 8:46am UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/7 "2021-11-29T08:46:59Z")

</div>

hey @MaxM  
Will this code work?  
I have also tried `meetingSDKElement.style.width = "1000px";`

#meetingSDKElement{  
width: 1000px;  
height: 500px;  
}

but no luck, can you suggest me how to get view option so that user can change the view and can also make component full screen

---

<div class="post-metadata">

**Author:** ![rtitvilasi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rtitvilasi/32/32929_2.png) [@rtitvilasi](https://devforum.zoom.us/u/rtitvilasi)\
**Post date:** [November 29, 2021, 9:51am UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/8 "2021-11-29T09:51:19Z")

</div>

hey @MaxM , after integrating , I am only getting options for two types of views, I am not getting gallery view button. Can anyone help me here?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [December 3, 2021, 7:10pm UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/9 "2021-12-03T19:10:48Z")

</div>

@rtitvilasi

It looks like that ID would apply to the div itself. In the case of the sample app, the ID is actually `#ZoomEmbeddedApp`. When testing with that ID, I saw that I could change the `#ZoomEmbeddedApp > #zoom-sdk-video-canvas` and the related elements inside to change the size of the window.

However, I’m thinking there is some flexbox tricks that we could use here but I’ll need to check with our team. Trying to set the flex property didn’t yield any results.

> [@rtitvilasi](#):
>
> hey @MaxM , after integrating , I am only getting options for two types of views, I am not getting gallery view button. Can anyone help me here?

Can you send a screenshot of what you’re seeing? What browser is this with?

Max

---

<div class="post-metadata">

**Author:** ![rtitvilasi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rtitvilasi/32/32929_2.png) [@rtitvilasi](https://devforum.zoom.us/u/rtitvilasi)\
**Post date:** [December 3, 2021, 7:46pm UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/10 "2021-12-03T19:46:39Z")

</div>

@MaxM Thanks for the reply, Actually my real concern was gallery view option was not coming on using component sdk but after using Cross-Origin Isolation , Everything worked perfectly . But as far as i know that this will be a temporary fix, Can you please tell us that will their be any permanent fix in future ? or correct me about Cross-Origin Isolation if i am wrong.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [December 10, 2021, 10:16pm UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/11 "2021-12-10T22:16:02Z")

</div>

Hi, @rtitvilasi,

Thank you for your questions and glad to hear after using Cross-Origin Isolation, everything worked perfectly. For your concern, see the [Delaying the Desktop Chrome change](https://developer.chrome.com/blog/enabling-shared-array-buffer/#origin-trial) section in the **SharedArrayBuffer** Chrome Developer blog post for more details. I’ve also linked our Cross-Origin Isolation help documentation for reference:

> **[Improve Performance in Chrome - Overview - Zoom Software Development Kit...](https://marketplace.zoom.us/docs/sdk/overview/improve-performance)**
>
> Improve Performance in Chrome
> 
> 
> 
> In the Chrome browser, our Web SDKs use an API called SharedArrayBuffer to deliver a better experience to the end user,...

You can also stay up to date on the evolving browser policies in web development here :

> **[SharedArrayBuffer updates in Android Chrome 88 and Desktop Chrome 92 - Chrome...](https://developer.chrome.com/blog/enabling-shared-array-buffer/#cross-origin-isolation)**
>
> SharedArrayBuffer will arrive in Android Chrome 88. It will only be available to pages that are cross-origin isolated. Starting in Desktop Chrome 92 it will also only be available to cross-origin isolated pages. You can register for an origin trial...

Let me know if this helps.

Best,  
Donte

---

<div class="post-metadata">

**Author:** ![rtitvilasi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rtitvilasi/32/32929_2.png) [@rtitvilasi](https://devforum.zoom.us/u/rtitvilasi)\
**Post date:** [December 15, 2021, 7:46am UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/12 "2021-12-15T07:46:28Z")

</div>

Hey @donte.zoom and @MaxM

Thanks for the suggestions. I am facing one issue with Cross origin isolation. The headers are working perfectly in local server but when i deploy it on my server which has HTTPS protocol than the isolation don’t work and i am not able to use Shared Array Buffer because of which i am getting problem on having gallery view in my production server. Can i get any help with this.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [December 15, 2021, 8:28pm UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/13 "2021-12-15T20:28:01Z")

</div>

Hi, @rtitvilasi ,

It looks like a fix was released in Web Meeting SDK 2.1.1. You can check out the release notes [here](https://marketplace.zoom.us/docs/changelog#publications/web-meeting-sdk-v2-1-1).

![Screen Shot 2021-12-15 at 3.24.57 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/1/7158a3966062f01eefac72c5053b91c924e45713.png)

Can you try upgrading to v2.1.1 and see if the behavior persists?

Thanks,  
Donte

---

<div class="post-metadata">

**Author:** ![rtitvilasi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rtitvilasi/32/32929_2.png) [@rtitvilasi](https://devforum.zoom.us/u/rtitvilasi)\
**Post date:** [December 16, 2021, 11:11am UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/14 "2021-12-16T11:11:42Z")

</div>

hi @donte.zoom ,

I tried updating the web sdk to v2.1.1 but still the other two view i.e Ribbon View and Gallery View is not showing up

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [December 16, 2021, 4:34pm UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/15 "2021-12-16T16:34:12Z")

</div>

@rtitvilasi ,

Can you share a screenshot of your terminal to verify that Cross-Origin Isolation changes were applied to your site, enter the following in your browser console:

```auto
typeof SharedArrayBuffer ==='function'

```

If the value is `true`, it’s correct.

Best,  
Donte

---

<div class="post-metadata">

**Author:** ![emdrremote](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emdrremote/32/33238_2.png) [@emdrremote](https://devforum.zoom.us/u/emdrremote)\
**Post date:** [December 16, 2021, 6:12pm UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/16 "2021-12-16T18:12:42Z")

</div>

I am also unable to get the embedded meeting to resize at all no matter what styling I apply. Here is a screenshot showing the meeting size, the container size, and the console showing the element:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/5/d51f52da4830131ab96536a0e16b711a1f519e1c.png)

How can I style this so that the meeting takes up the full screen or the container it is in?

---

<div class="post-metadata">

**Author:** ![rtitvilasi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rtitvilasi/32/32929_2.png) [@rtitvilasi](https://devforum.zoom.us/u/rtitvilasi)\
**Post date:** [December 17, 2021, 5:30am UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/17 "2021-12-17T05:30:40Z")

</div>

hello @donte.zoom ,

`typeof SharedArrayBuffer ==='function'`

Value of above is false because i have removed the Cross-origin header after the update 2.1.1 . Correct me if i am wrong, that was the point of update so that we don’t have to use coop and coep.

If you say that COOP and COEP headers are necessary than also these headers code are working on my localhost but when i deploy my code to production server with protocol HTTPS than again `typeof SharedArrayBuffer ==='function'` this started showing false. Can you help me with this?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [December 18, 2021, 6:56pm UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/18 "2021-12-18T18:56:59Z")

</div>

@rtitvilasi,

Are you serving the sample app over HTTPS when testing? if not, please make sure to sever your site over HTTPS and ensure you’ve allowed your browser access to the microphone and camera. To enable a locally running server under this limitation, you can use a tool like ngrok.

[https://ngrok.com/](https://ngrok.com/)

Ngrok allows you to tunnel traffic to your server running on localhost through an HTTPS domain. Let me know if this helps.

Best,  
Donte

---

<div class="post-metadata">

**Author:** ![activeoperate](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/activeoperate/32/33608_2.png) [@activeoperate](https://devforum.zoom.us/u/activeoperate)\
**Post date:** [December 27, 2021, 1:53pm UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/19 "2021-12-27T13:53:49Z")

</div>

would you like to share CSS files, so every one here can see the exact problem[.](https://activeoperate.com/activate-nfl-com/) It will be easy to understand what actually you want.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 4, 2022, 7:16pm UTC](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566/20 "2022-01-04T19:16:38Z")

</div>

Hey @activeoperate,

Thanks for your input here. I agree that CSS examples would help here. From there, we should be able to offer further advice. Likewise, our team is working to add OOTB customization to the SDK in the near future.

Thanks,  
Max

[Next page](https://devforum.zoom.us/t/resize-embedded-zoom-with-component-view-in-2-0-1/59566.md?page=2)
