jcrodriguez-dis / moodle-mod_vpl

Virtual Programming Lab for Moodle (Module)
GNU General Public License v3.0
97 stars 84 forks source link

Height of edit area #175

Open chysch opened 4 months ago

chysch commented 4 months ago

The edit text area in the edit tab is fixed to a height of about 8 lines which cannot be changed which makes editing the code from inside the VPL inconvenient.

Example: image

I cannot increase the height of the text area. This means that I only see a very small amount of code at any given time which is very inconvenient.

Suggested fix:

  1. Make the height initialize to a greater value.
  2. Make it possible to modify the height with the mouse and not only the width by adding a vertical resizeable handle below.
jcrodriguez-dis commented 4 months ago

Dear @chysch,

To clarify, the editor window's height is designed to automatically adjust to maximize the available space, ensuring that the upper portion of the page remains visible for easy access to tools and menus. The editor initially displays a minimum of 8 lines of code to maintain a balance between usability and page layout.

However, for instances where more viewing area is required, I recommend utilizing the full window mode. This feature expands the editor zone to occupy the entire browser window, providing you with both increased width and height. This maximizes your code visibility and editing space, making it easier to work on larger projects without the need to scroll excessively.

Best regards, Juan Carlos

chysch commented 4 months ago

Thank you for your reply.

Unfortunately this feature is problematic because the headers and the tabs take up so much space that it leaves only a very small area for "maximum available space".

In fact, I just noticed that the feature also exists for the tabs which contain the evaluation results leaving barely space for one line of output (see image below).

image

I feel like there should be a minimum height that allows the user to see a significant amount of lines both of code and of output.

buddy1234567 commented 4 months ago

What are the dimensions and resolution of your monitor? I've never seen a screen that wide and that tall before... In my experience on standard monitors with normal zoom and standard resolution the editor works well.

chysch commented 4 months ago

My monitor is a 14 inch laptop. The resolution is 1920x1080, set on 150% scaling.

I tried it now on another monitor and I see your point. I think it would still be helpful to define a minimum height for small high resolution monitors like mine.