Bug 23899

Summary: Cannot change size of Show SQL Code box on run report page (Chromium)
Product: Koha Reporter: Andrew Fuerste-Henry <andrew>
Component: ReportsAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: jonathan.druart
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Andrew Fuerste-Henry 2019-10-25 12:43:09 UTC
To test:
- run a report
- click "Show SQL Code"
- try to use the little tab at the bottom right of the code box to resize the box
- the little tab doesn't work!

This is a pretty minor annoyance, but the box does default to being pretty large.
I see that the div CodeMirror-Scroll has its height set to 100%. If I change that in the inspector to something defined in pixels then the little tab works to change the size in the page.
Comment 1 Katrin Fischer 2019-11-02 22:57:42 UTC
The little tab does work for me in master in Firefox, but not in Chromium. 
Same for the box on "edit report".
Comment 2 Jonathan Druart 2019-11-11 16:22:23 UTC
See https://github.com/codemirror/CodeMirror/issues/850

There is code we could take from https://codepen.io/sakifargo/pen/KodNyR
Comment 3 Katrin Fischer 2023-12-09 12:18:47 UTC
It does work for me now in Chromium - I assume the bug in Code Mirror might have been fixed since.