Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong height when there is more elements on page #2453

Open
Justinas-Jurciukonis opened this issue Nov 20, 2023 · 4 comments
Open

Wrong height when there is more elements on page #2453

Justinas-Jurciukonis opened this issue Nov 20, 2023 · 4 comments

Comments

@Justinas-Jurciukonis
Copy link

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
@ZyzychO
Copy link

ZyzychO commented Jan 30, 2024

Hello Justinas!

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

@ZyzychO
Copy link

ZyzychO commented Feb 2, 2024

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

@Justinas-Jurciukonis
Copy link
Author

Justinas-Jurciukonis commented Feb 14, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants