quasar icon indicating copy to clipboard operation
quasar copied to clipboard

A scroll bar is added even when the website content fits the screen size

Open kashyapjagwani opened this issue 4 years ago • 5 comments

Describe the bug QPage is assigned a default min-height which leads to an unnecessary scroll bar even when the page content fits onto the screen.

To reproduce Steps to reproduce the behavior:

  1. Create a new Quasar project using the command quasar create <project-name>
  2. Run the project on a dev server using the command quasar dev
  3. Now, although the default quasar project content fits on the screen, an unnecessary scroll bar is present on the right side

Expected behavior If the QPage content fits on the screen, no scroll bar should be present on the screen.

image image

kashyapjagwani avatar Jun 03 '21 05:06 kashyapjagwani

@kashyapjagwani Someone just had this issue, but we had to have them make a CodePen to reproduce it. Then we found they had added q-gutter-sm to the QPage, which added negative offsets (thereby raising the page). If this is not the case with your code, please create a CodePen with the issue so we can look at it.

hawkeye64 avatar Jun 04 '21 15:06 hawkeye64

Also please specify the version of the browser that you are using.

rstoenescu avatar Jun 05 '21 09:06 rstoenescu

I had the same issue today just creating the default project and running it on Chrome 91.0.4472.114 and Edge 91.0.864.54.

image

gilrempto avatar Jun 18 '21 23:06 gilrempto

@gilbertorempto Try it in incognito mode just to make sure its not one of your extensions. Considering it's happening on both it may be an issue with the chromium engine. However, that being said, I am not seeing it on Linux: image

hawkeye64 avatar Jun 21 '21 13:06 hawkeye64

Hi,

Sorry to necro. I've been having this too, on a brand-new project (just playing around with Quasar).

After having a little bit of a play around, for me, the thing that's causing it is having a card which uses any of the "q-mt-xs|sm|md|lg|xl" classes, inside of a QPage.

Not too sure if it's exclusively the card, or if it's just any child of a q-page which uses the q-margin utility classes.

So something like: image

Notice the scroll bar: image

What is looks like in the DOM: image

Removing the margin on the card, and instead putting a padding on the q-page instead, resolves it: image image

What it looks like in the DOM after: image

Layout: image

Unsure why that causes such weirdness like this, but it does.

Obligatory browser version: image

Obligatory package.json image

dstlny avatar Apr 14 '24 01:04 dstlny