Skip to content

[Bug]: Scrollbars display over query results when there's too much content for the panel height #20827

@altius-joe

Description

@altius-joe

Description

As of the most recent update (1.38.0), scrollbars will display over query results when there isn't enough vertical space to display it all, and the result set is 1 or 2 rows. I believe the behaviour should be to preserve at least 1 row of data, then the scrollbar, then further content with vertical scroll (as was previously).

I have a use case where I search several tables for a value (employee name) at the same time, and the easiest way to do this has been within a single SQL script (much like the attached script).

Image

When there are at least 3 row results displayed, the issue isn't present.

Steps to Reproduce

Set preference to display query results in the bottom panel (not new tab)

Run several queries within the same session, at least 1 of which has sufficient columns to extend beyond the window (triggering a horizontal scrollbar)

Reduce the height of the the query result panel until scrollbars overlap content

Affected Area

  • Connection dialog (SQL Server | Azure browse/Fabric browse)
  • Query editor
  • Query results panel
  • Object Explorer
  • GitHub Copilot integration
  • Preview/Edit data
  • Table Designer
  • Schema Designer
  • Schema Compare
  • Local SQL Server Container provisioning
  • SQL database in Fabric provisioning
  • DACPAC/BACPAC export/import
  • SQL Database projects
  • Query Plan Visualizer
  • Other (please describe below)

If you selected "Other", please describe the affected area

No response

Environment Information

VS Code: 1.107.0
MSSQL Version: 1.38.0

Confirmation

  • I have searched existing issues and couldn't find a match
  • I want to work on this issue

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions