# Cannot disable/remove/hide the fullscreen button

**URL:** <https://pdfjs.community/t/cannot-disable-remove-hide-the-fullscreen-button/274>\
**Category:** Bug Reports\
**Tags:** pdfjs-express\
**Created:** [September 18, 2020, 2:15pm UTC](https://pdfjs.community/t/cannot-disable-remove-hide-the-fullscreen-button/274 "2020-09-18T14:15:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/alex/32/133_2.png) [@alex](https://pdfjs.community/u/alex)\
**Post date:** [September 18, 2020, 2:15pm UTC](https://pdfjs.community/t/cannot-disable-remove-hide-the-fullscreen-button/274/1 "2020-09-18T14:15:51Z")

</div>

Hello, when trying out the editor to see if we can integrate it in our app I noticed the `fullScreenButton` is documented but I am unable to hide it, this button doesn’t work (because nested iframe) and thus I’d like to remove it.

```javascript
WebViewer({
    path: '/js/pdfjsexpress/',
    initialDoc: 'pathtopdf',
    disabledElements: [
        'fullScreenButton',
        'fullscreenButton',
    ],
}, document.getElementById('viewer'))
    .then(instance => {
        const {docViewer} = instance;

        instance.disableElements([
            'fullscreenButton',
            'fullScreenButton',
        ]);
    });

```

I’ve tried the above which covers all cases to disable the button I think.

I also noticed the button (row) is missing the `data-element="fullScreenButton"` which is probably related (the dark mode button is also missing this `data-element` so might also not be disableable).

We have version 7.0.1 currently (downloaded from the website at the time of writing this comment).

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [September 22, 2020, 6:01pm UTC](https://pdfjs.community/t/cannot-disable-remove-hide-the-fullscreen-button/274/2 "2020-09-22T18:01:26Z")

</div>

Hi!

This is fixed in version 7.1 (just released today).

Thanks,  
Logan

---

<div class="post-metadata">

**Author:** ![alex](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/alex/32/133_2.png) [@alex](https://pdfjs.community/u/alex)\
**Post date:** [September 22, 2020, 6:34pm UTC](https://pdfjs.community/t/cannot-disable-remove-hide-the-fullscreen-button/274/3 "2020-09-22T18:34:39Z")

</div>

Perfect, although it is now called a `fullscreenButton` and not (as documented) a `fullScreenButton`, you might want to update that in the documentation (and also add `themeChangeButton`) 🙂

But confirmed fixed in 7.1.
