No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Modals: possible to align with right side of layout and detect open/close state?

    Help
    2
    2
    586
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ssuess
      ssuess last edited by ssuess

      Hi, I am starting to work with modals, and I am looking for a way to have it be maximized UNLESS the left side drawer is open, in which case fill the right side only (as if it were full screen). Are there properties built in that allow this? I can’t find them in the docs or I am possibly missing something obvious. Thanks!

      1 Reply Last reply Reply Quote 0
      • a47ae
        a47ae last edited by

        For the first part, you could bind the maximized prop of the modal to a computed property. Then listen for the events of the sidebar and change accordingly. But it is tricky to fill the right space because modals are absolutely positioned. You could try to use CSS calc to compute the width (something like calc(100vw - $leftSidebarWidth).

        1 Reply Last reply Reply Quote 1
        • First post
          Last post