Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38276

Increase size of text area for pipeline script code

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: workflow-cps-plugin
    • Labels:
    • Environment:
      Jenkins 2.7.2
      Pipeline plugin 2.11
      Window 7 x64 SP1
    • Similar Issues:

      Description

      The text area for pipeline script code is too small, and neither Chrome or Firefox allow for custom resizing; text area size is likely hard coded in Jenkins.

      This issue becomes critical on 13" laptop screens even if they are retina as the edit window becomes almost impossible to use due to both lack of horizontal and vertical space.

        Attachments

          Issue Links

            Activity

            Hide
            a2intl Andrew Allen added a comment -

            Made some enhancements to Victor Toulouse's solution/hack (thanks!) that allows resizing by restyling a parent container with resize:both and calling aceEditor.resize() at the proper times. Like his solution, you'll need Tampermonkey installed to run this UserScript, and since it uses ResizeObserver, it only works with modern Chrome versions. https://gist.github.com/a2intl/293a76ae3323ec21d7cdceb6f7cd63af 

            Show
            a2intl Andrew Allen added a comment - Made some enhancements to Victor Toulouse 's solution/hack (thanks!) that allows resizing by restyling a parent container with resize:both and calling aceEditor.resize() at the proper times. Like his solution, you'll need Tampermonkey installed to run this UserScript, and since it uses ResizeObserver , it only works with modern Chrome versions. https://gist.github.com/a2intl/293a76ae3323ec21d7cdceb6f7cd63af  
            Hide
            mmeschenmoser Marcel Meschenmoser added a comment -

            The replay function is very useful, but with this stupid limitation it's a pain in the neck.

            Please fix

            Show
            mmeschenmoser Marcel Meschenmoser added a comment - The replay function is very useful, but with this stupid limitation it's a pain in the neck. Please fix
            Hide
            batmat Baptiste Mathus added a comment -

            stupid limitation

            Marcel Meschenmoser Refrain from posting such offensive comment. It's generally undesired, and even more on an opensource project where nobody is paying for the time of others.

            Show
            batmat Baptiste Mathus added a comment - stupid limitation Marcel Meschenmoser Refrain from posting such offensive comment. It's generally undesired, and even more on an opensource project where nobody is paying for the time of others.
            Hide
            piratejohnny Jon B added a comment -

            Marcel Meschenmoser Can you improve it please?

            I took a look at it and the widget that is being used didn't have a way to resize it at the time. If Marcel is passionate about it maybe he can close this ticket. I couldn't figure it out.

            Show
            piratejohnny Jon B added a comment - Marcel Meschenmoser Can you improve it please? I took a look at it and the widget that is being used didn't have a way to resize it at the time. If Marcel is passionate about it maybe he can close this ticket. I couldn't figure it out.
            Hide
            jk Jan Klass added a comment -

            The editor div has class ui-resizable, and contains a div with class ui-resizable-handle. So I guess the intent was that it should be resizable? But it is not?

            Where would you start looking to fix this issue?

            Show
            jk Jan Klass added a comment - The editor div has class ui-resizable , and contains a div with class ui-resizable-handle . So I guess the intent was that it should be resizable? But it is not? Where would you start looking to fix this issue?

              People

              • Assignee:
                Unassigned
                Reporter:
                raffinyc Raffi B
              • Votes:
                26 Vote for this issue
                Watchers:
                30 Start watching this issue

                Dates

                • Created:
                  Updated: