Skip to content

Codemirror lib sidebar is moving to middle on movement of horizontal scrollbar in Query tool editor #5905

@anilsahoo20

Description

@anilsahoo20

Please note that security bugs or issues should be reported to security@pgadmin.org.

Describe the bug

In the Query tool editor, the CodeMirror sidebar moves from it's fixed left side position to the middle of the screen.

To Reproduce

Steps to reproduce the behavior:
1st Scenario:
In the Query tool,

  1. write some long query
  2. move the horizontal scrollbar to the end of the written query
  3. close the scratch pad,
  4. the CodeMirror sidebar moves from it's position to the middle of the screen.

2nd Scenario:
In the Query tool,

  1. write some long query
  2. close the scratch pad
  3. move the horizontal scrollbar to the right
  4. click on reset layout button
  5. the CodeMirror sidebar moves from it's position to the middle of the screen.

Expected behavior

The CodeMirror sidebar must be fixed to the left side of the query tool editor.

Screenshots
1st Scenario Screenshot:
Screenshot 2023-03-01 at 3 35 18 PM

2nd Scenario Screenshot:
Screenshot 2023-03-01 at 3 36 46 PM

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: OSX monterey 12.6.3
  • Version: 6.20
  • Mode: Both
  • Browser (if running in server mode): chrome

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions