Skip to content

Full width horrizontal scroll in a Dialog. #2093

Answered by oneolddev
Valkozaur asked this question in Q&A
Discussion options

You must be logged in to vote

FluentHorizontalScroll is thin wrap around the fluent-horizontal-scroll web component. This web component can only take widths as values not percentages.

<style>
    .containerSize {
        --containerWidth: 300px;
        --containerHeight: 200px;
        --containerPadding: 25px;
    }

    .container {
        width: var(--containerWidth);
        height: var(--containerHeight);
        padding: var(--containerPadding);
        border: solid blue 1px; /* show size of container */
    }

    .full-width,
    .full-width fluent-card {
        width: calc(var(--containerWidth) - var(--containerPadding)*2);
        height: calc(var(--containerHeight) - var(--containerPadding)*2);
    }
</s…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Valkozaur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants