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

    Don't want q-input to expand with text.

    Help
    2
    7
    443
    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.
    • C
      cynderkromi last edited by

      On my little online form, when someone types information into the q-input, and it’s long, the input (or maybe it’s the flexbox, I can’t tell) expands so that it pushes the page off the right size of the browser window and it can no longer be easily seen.

      I am not sure if this is happening because of the input or the flexbox.

      How do I force the q-input to not expand? I want the input to remain a static width.

      this is my q-input inside the flexbox div.
      Thanks!

          <div class="col-4 q-pa-md">
          <q-input
            filled
            v-model="dogAkcNum"
            @change="resetToggle"
            bg-color="orange-2"
            label="AKC Number"
            hint="Dog's AKC Registration Number"        
            lazy-rules
            :rules="[ val => val && val.length > 0 || 'AKC Registration Number is Required']"
              /> 
            </div>
      
      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @cynderkromi last edited by

        @cynderkromi

        Does not happen in any of the default Quasar input examples.

        Could be custom css or…hard to tell from just the code snippet your posted. Try to disable all your custom css first.

        Please create a codepen.io so we can provide better support.

        1 Reply Last reply Reply Quote 0
        • C
          cynderkromi last edited by

          Yeah, I know it doesn’t expand on the quasar pages for q-input. That’s why I’m wondering if it’s the flexbox expanding.

          I don’t really want to make a codepen with my whole application.

          https://bristlenosedog.com/enter/#/

          dobbel 1 Reply Last reply Reply Quote 0
          • dobbel
            dobbel @cynderkromi last edited by dobbel

            @cynderkromi

            I don’t really want to make a codepen with my whole application.

            Understandable, the trick is to create a minimal effort and size codepen that will still reproduce your problem. For example: a form with 1 input.

            https://bristlenosedog.com/enter/#/

            Is the issue on this site? If so where?

            1 Reply Last reply Reply Quote 0
            • C
              cynderkromi last edited by cynderkromi

              It happens with the Dog Information fields. If you type in a really long string, the page expands.

              It’s weird that the Owner fields don’t cause the same thing, as all the fields are defined the same way.

              dobbel 1 Reply Last reply Reply Quote 0
              • dobbel
                dobbel @cynderkromi last edited by

                @cynderkromi

                It happens with the Dog Information fields. If you type in a really long string, the page expands.

                It’s not because of the q-input directly but because the table under the label: ‘Current Entry - This has not been saved unless it shows in the “Saved Entries” box.’

                This table grows in width when you type something in the dog’s info input. Because the table is in the same parent container ( I presume) the input’s will stretch along with the table.

                1 Reply Last reply Reply Quote 0
                • C
                  cynderkromi last edited by

                  I fixed it, I had too many flexbox rows. 🙂

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