redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Wrong height when there is more elements on page

Open Justinas-Jurciukonis opened this issue 2 years ago • 4 comments

Describe the problem to be solved If Redoc element is only element in page, than height is correctly calculated to take 100%. But if there is more elements on page (footer/header) than Redoc still takes 100% of page height and last elements in menu are hidden

Describe the solution you'd like Since already using flex, position elements with flex too, so that it's possible to have more elements on page.

Additional context

Please note last visible element in menu

Without footer/header:

Screenshot 2023-11-20 at 11 32 06

With footer/header:

Screenshot 2023-11-20 at 11 34 31

Justinas-Jurciukonis avatar Nov 20 '23 09:11 Justinas-Jurciukonis

Hello Justinas!

Thank you for reporting this over, let us check this.

ZyzychO avatar Jan 30 '24 22:01 ZyzychO

We appreciate your patience,

This functionality can be achieved by applying the styles I have highlighted in the screenshot below. Could you please add those styles in the index.html template and let us know if that will work for you?

image

ZyzychO avatar Feb 02 '24 19:02 ZyzychO

Not really got you how to change it.

I am using Redoc Object

And our HTML looks like this (AngularJS project):

<body>
    <header></header>
    <div class="page">
        <section>
            <div id="redoc-container"></div>
        </section>
    </div>
    <footer></footer>
</body>

with this JS:

    Redoc.init(
        @PublicRepository.getDocumentationUrl(),
        {
            hideDownloadButton: true
        },
        angular.element('#redoc-container')[0]
    )

Justinas-Jurciukonis avatar Feb 14 '24 09:02 Justinas-Jurciukonis

Also why scrollYOffset only moves menu sidebar, but not content and code blocks?

Justinas-Jurciukonis avatar Feb 14 '24 11:02 Justinas-Jurciukonis