ganttproject icon indicating copy to clipboard operation
ganttproject copied to clipboard

Task notes popup becomes excessively wide

Open nnako opened this issue 5 years ago • 5 comments

Hi,

when assigning and inserting a comment for a task, an orange document symbol is displayed on the same row at the right border of the screen to signify that a comment for the task is available.

Now, when the text inserted is not pre-formatted (especially no artificial line breaks present), the whole comment is displayed within ONE LINE of text as soon as the mouse pointer hovers over the orange document symbol. This is not practical when the text is very long and e.g. copied from an external location as plain text into the comment element. There is a lot of re-formatting necessary to be able to read the text as a whole.

In order to tweak the comment text hover display here, would it be possible to provide an option which allows users to choose a maximum length of displayed text within the comment's hover window? The comment edit window (and all other edit windows) provide this functionality natively.

What do you think?

Thanks.

nnako avatar Jun 09 '19 19:06 nnako

I understand the need, but I don't think that users really want to edit another setting just to make weird UI a bit more feasible. It just should set acceptable width automatically.

dbarashev avatar Jun 24 '19 13:06 dbarashev

Could we wrap the text to a reasonable fixed WRAPLENGTH? Or should we somehow calculate that value according to the available space?

juananpe avatar Jul 09 '19 10:07 juananpe

I think it should be calculated from the available space. It doesn't make too much sense to use fixed width in pixels, given the variety of display resolutions (from 1200px to 4k+ high density displays). We may try using width in symbols, like 80 chars, but this will require nearly the same or even greater engineering efforts (you need to calculate the width of 80 chars with the current font in pixels) and may raise another issue of excessive height of the note. When tooltip width is calculated, one may at least adjust the chart/window size to resize the tooltip.

dbarashev avatar Jul 09 '19 11:07 dbarashev

Another possibility might be to permanently show a "notes-pane" on the right side of the screen (as seen in e.g. ToDoList application). On this side pane the notes of the currently selected item would be displayed.

But as a quick solution a WRAPLENGHT of maybe 80 characters would do the job nicely, if the wrap would occur between words and not characters.

nnako avatar Jul 09 '19 11:07 nnako

Something like a comment pane would be really nice. I'm member of a small team, and the others keep using Excel for producing gantt diagrams because they want to add notes and comments everywhere (which I don't approve of very much in itself). Excel sucks already as it is, especially when there is a lot of text, but moving tasks around in a colourful table via cut and paste is a real pain.

arrkh avatar Aug 30 '22 14:08 arrkh