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

    non fixed footer needs scrolling

    Help
    2
    7
    1183
    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.
    • I
      imix last edited by

      Hi,

      if I create a simple layout with a non-fixed footer the footer is pushed down and scrolling is required, even though the content is smaller than the viewport.

      To reproduce from a standard quasar init:

      The Layout is defined with: <q-layout view="lHh Lpr lff"> and <q-layout-footer>Test</q-layout-footer> is added in the layout and QLayoutFooter imported in quasar.conf.js.

      The page looks as follows:

      <template>
        <q-page>
          <h1>test</h1>
        </q-page>
      </template>
      

      If I remove the margins from the h1: <h1 class="q-ma-none">test</h1> the page looks as expected.

      What am I doing wrong?

      thanks!

      1 Reply Last reply Reply Quote 1
      • metalsadman
        metalsadman last edited by metalsadman

        @imix
        try lFf instead of your lff. you can test in https://quasar-framework.org/components/layout.html.

        1 Reply Last reply Reply Quote 0
        • I
          imix last edited by

          thanks, I want the lff behaviour. I expect it to behave like in https://quasar-framework.org/components/layout.html with lff and Extra content for scrolling disabled. but with the example I gave, it behaves as if there was extra content below the h1 which would trigger scrolling (but obviously there isn’t).

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

            i see, wrapping it in a div with class “row” will also fix the issue. i don’t know if you want that either, otherwise you’ll have to stick to your solution.

            1 Reply Last reply Reply Quote 0
            • I
              imix last edited by imix

              so the rule about css margin mentioned in the layout documentation also applies to <q-page>? Maybe this could be added to the page documentation? Would have saved my some tinkering time 😉

              thanks for the help!

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

                it’s not about q-page, the native <h1> just adds margins, which is messing up with q-layout which you are under in. have you tried the typography section https://quasar-framework.org/components/typography.html?

                1 Reply Last reply Reply Quote 0
                • I
                  imix last edited by

                  yes I did and from my understanding h1 is permissible (and should be to propperly structure web pages). I think I just did not understand that margins can only be used inside a layout when inside a “first” flex container created by “row” or “flex”?

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