Defect #7280
closedIssues subjects wrap in Gantt
0%
Description
When I see the Gantt chart the subject of the petition if you have more than one line in length is cut
Files
Related issues
Updated by Luis Serrano Aranda almost 14 years ago
- File Capture.JPG Capture.JPG added
Hello, no one does this happen?
Thanks
I attach a capture.
Updated by Dirk Schmidt almost 14 years ago
Same happens in our Redmine.
Exactly like in the Screencapture of Luis Serrano Aranda
Updated by Luis Serrano Aranda almost 14 years ago
I have worked, if not quite right and looks good also in internet explorer
Change in /redmine/lib/redmine/helpers/gantt.rb
Older line 183
options[:top_increment] = 20 unless options.key? :top_increment
New line 183
options[:top_increment] = 30 unless options.key? :top_increment
Old line 711
output= "<div class='......line-height:1.2;height:16px....>
New line 711
output= "<div class='......line-height:1.6;height:28px....>
And in the file /redmine/app/views/gantts/show.html.erb
Old line 65
g_height = [(25.....
New line 65
g_height = [(30.....
I think this great and improves the gantt visualization
Thanks for your attention and sorry for my english
Updated by Dirk Schmidt almost 14 years ago
Nearly perfect solution, but if you have a lot of Tickets there is not enough place if you scroll down the Gantt
Updated by Luis Serrano Aranda almost 14 years ago
You have changed the file /redmine/app/views/gantts/show.html.erb ?
Put a bigger number I think is this parameter
Updated by Dirk Schmidt almost 14 years ago
Your Solution works perfect. Thanks :) Good Work!
I think the Problem that i had after was caused of the Browsers Cache.
Updated by Stefan Langenmaier almost 14 years ago
+1
The fix from Luis Serrano Aranda works, but now every row has the additional height. This can be used to work but it's not ideal yet. What happens if a title takes up the space for three lines? The best thing would be that it grows depending on the text.
Never the less, thank you very much for your work.
Updated by Etienne Massip almost 14 years ago
- File gantt_subjects_truncation.patch added
What about truncating the subjects in the subjects column, as the full issue subject is displayed by the tooltip in the diagram part ?
Here's a patch.
We could also add a tooltip on subject if truncated...
Updated by Luis Serrano Aranda almost 14 years ago
- File Capture.JPG Capture.JPG added
I make changes to the files without my modification?
With Internet Explorer if the subject is truncated fails to calculate the position.
Updated by Luis Serrano Aranda almost 14 years ago
What do you have changed in the line 360 (file gantt.rb) ?
Thanks
Updated by Etienne Massip almost 14 years ago
Just " for ' (single quotes), absolutely useless.
Updated by Stefan Langenmaier almost 14 years ago
Very nice solution! It working here.
Updated by Etienne Massip almost 14 years ago
Luis Serrano Aranda wrote:
I make changes to the files without my modification?
With Internet Explorer if the subject is truncated fails to calculate the position.
Yep, damn IE6.
Updated by Etienne Massip almost 14 years ago
- Subject changed from Problems in Gantt to Issues subjects are truncated in Gantt
Updated by Etienne Massip almost 14 years ago
- File gantt_subjects_truncation.patch added
Should work with IE6 too now.
Updated by Etienne Massip almost 14 years ago
- File deleted (
gantt_subjects_truncation.patch)
Updated by Jean-Philippe Lang almost 14 years ago
- Status changed from New to Closed
- Target version set to 1.1.1
- Resolution set to Fixed
Etienne, thanks for the patch. Committed in r4780 and merged in 1.1-stable.
Updated by Jean-Philippe Lang almost 14 years ago
- Status changed from Closed to Reopened
- Target version deleted (
1.1.1) - Resolution deleted (
Fixed)
The patch broke gantt unit tests and was reverted in r4782 (http://www.redmine.org/builds/index.html).
Updated by Etienne Massip almost 14 years ago
- File gantt_subjects_truncation.patch added
Yes, I knew it, sorry.
This one should pass test.
Updated by Etienne Massip almost 14 years ago
- File deleted (
gantt_subjects_truncation.patch)
Updated by Etienne Massip almost 14 years ago
- File deleted (
gantt_subjects_truncation.patch)
Updated by Etienne Massip almost 14 years ago
This one should pass test and be compatible with IE6.
Updated by Luis Serrano Aranda almost 14 years ago
Perfect but when I put the title in all caps, when exporting to pdf gives problems
Thanks
Updated by Etienne Massip almost 14 years ago
Luis Serrano Aranda wrote:
Perfect but when I put the title in all caps, when exporting to pdf gives problems
Thanks
What kind of problem ? This patch is not supposed to have any impact on PDF export, are you sure that your problem was not present before you applied the patch ?
Updated by Matthias Neubert almost 14 years ago
This patch seems to just cut of the long names of issues.
This is not very usefull when the gantt chart is printed (hence no mouseover)
-> Why not have 2 lines or more when name is soo long, but displayed proper an not
shown als little dots under the first line.
btw: no hard problems with Redmine 1.11 and patch applied.
-> but when last word before truncation is too long, the word it self and "(..)" overlaps with
the bar in diagram of this issue.
Updated by Etienne Massip almost 14 years ago
Yes, this patch is not nearly a perfect solution, it just enhances the Gantt visual aspect by removing subject overlapping.
Subject length mostly overstep default width of the subjects div (at least on my redmine) so there would be almost half the issues eventually listed on the screen, that could be a problem.
This is not very usefull when the gantt chart is printed (hence no mouseover)
Gantt tab is not very well suited for direct screen printing, is it ? PDF should be a better choice ?
but when last word before truncation is too long, the word it self and "(..)" overlaps with
the bar in diagram of this issue.
Could you post a screenshot ? What browser are you using ?
Updated by Matthias Neubert almost 14 years ago
I use Firefox 3.6, screen shot of th pdf is attached
Updated by Etienne Massip almost 14 years ago
As I said before :
This patch is not supposed to have any impact on PDF export, are you sure that your problem was not present before you applied the patch ?
Updated by Anonymous almost 14 years ago
Entienne, thanks for the patch. It solves the issue, however, your new patch still breaks 3 unit tests.
1) Failure: test: #subject_for_issue :html format should add an absolute positioned div. (Redmine::Helpers::GanttTest) [/test/unit/lib/redmine/helpers/gantt_test.rb:620:in `__bind_1297945857_987240' shoulda (2.10.3) lib/shoulda/context.rb:362:in `call' shoulda (2.10.3) lib/shoulda/context.rb:362:in `test: #subject_for_issue :html format should add an absolute positioned div. ']: Expected at least 1 element matching "div[style*='absolute']", found 0. <false> is not true. 2) Failure: test: #subject_for_project :html format should add an absolute positioned div. (Redmine::Helpers::GanttTest) [/test/unit/lib/redmine/helpers/gantt_test.rb:288:in `__bind_1297945862_896580' shoulda (2.10.3) lib/shoulda/context.rb:362:in `call' shoulda (2.10.3) lib/shoulda/context.rb:362:in `test: #subject_for_project :html format should add an absolute positioned div. ']: Expected at least 1 element matching "div[style*='absolute']", found 0. <false> is not true. 3) Failure: test: #subject_for_version :html format should add an absolute positioned div. (Redmine::Helpers::GanttTest) [/test/unit/lib/redmine/helpers/gantt_test.rb:454:in `__bind_1297945867_486670' shoulda (2.10.3) lib/shoulda/context.rb:362:in `call' shoulda (2.10.3) lib/shoulda/context.rb:362:in `test: #subject_for_version :html format should add an absolute positioned div. ']: Expected at least 1 element matching "div[style*='absolute']", found 0. <false> is not true. 946 tests, 3639 assertions, 3 failures, 0 errors
This happens because you moved this css to application.css, making these tests unnecessary:
+.gantt_subject { position: absolute; height: 16px; line-height: 1.2em; } +.gantt_subject-text { position: absolute; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
I removed these tests and made an updated patch.
Updated by Etienne Massip almost 14 years ago
Thanks.
BTW, this patch does not really solve the problem, it only prevents the actual ugly vertical override.
Maybe we could try some other way like adding a horizontal moving separator between subjects and lines in addition to this truncation, thus one could resize at will the subject bar to whatever he needs if the default width does not fit his need.
Updated by Anonymous almost 14 years ago
Well the patch does makes the html view consistent with the pdf view.
A moving separator seems a bit over the top solution to only show the issue name. Actually, I like your previous suggestion of showing a tooltip with the full issue name.
Updated by Etienne Massip almost 14 years ago
Pieter Nicolai wrote:
A moving separator seems a bit over the top solution to only show the issue name.
I was also thinking about the possibility later on to add columns to the subjects bar.
Updated by Anonymous over 13 years ago
I added tooltips for each gantt subject which show the full title. See attached patch.
All tests pass. Hope this can get included in 1.1.2 since this issue is what is holding us back updating Redmine to 1.1.x at our company.
Updated by Etienne Massip over 13 years ago
Nice.
You should replace the to_s_with_project
in source:/trunk/lib/redmine/helpers/gantt.rb with something like the result of format_version_name()
in source:/trunk/app/helpers/application_helper.rb#L176
Updated by Jean-Philippe Lang over 13 years ago
- Subject changed from Issues subjects are truncated in Gantt to Issues subjects wrap in Gantt
Updated by Jean-Philippe Lang over 13 years ago
- Target version set to 1.1.2
- Resolution set to Fixed
Updated by Etienne Massip over 13 years ago
I'd test it with IE6 as applying style directly to div
instead of span
(white-space and text-overflow) didn't work previously (see note 16).
Updated by Etienne Massip over 13 years ago
- no subject text for truncated subjects when the issue is assigned and using gravatar
- else, subject text for truncated subjects is displayed over the issue icon
I think that CSS should be move out from the page to the stylesheet, firstly because it's bad habit to repeat style with the style attribute and secondly because that would lighten the html when rendering a lot of issues in the Gantt.
Plus : why not truncate the version and project subjects too ?
Updated by Etienne Massip over 13 years ago
Sorry, couldn't reopen the issue (#7678) :/
Updated by Jean-Philippe Lang over 13 years ago
Etienne Massip wrote:
As feared, new rendering of the Gantt with IE6 is very ugly :
Maybe replacing the div in #html_subject with a span would make IE6 happy? Can you give a try?
I think that CSS should be move out from the page to the stylesheet, firstly because it's bad habit to repeat style with the style attribute and secondly because that would lighten the html when rendering a lot of issues in the Gantt.
Done in r4916.
Plus : why not truncate the version and project subjects too ?
They are truncated. Do you mean adding a title to the div?
Updated by Etienne Massip over 13 years ago
Jean-Philippe Lang wrote:
Etienne Massip wrote:
As feared, new rendering of the Gantt with IE6 is very ugly :
Maybe replacing the div in #html_subject with a span would make IE6 happy? Can you give a try?
Plus : why not truncate the version and project subjects too ?
IE6 is very thought to satisfy, I think I've already try this trick ; I'll try again and tell you back.
They are truncated. Do you mean adding a title to the div?
Ok, maybe should I put my glasses on...adding the title would be nice also.
Updated by Etienne Massip over 13 years ago
Still ugly.
You should be able to reproduce this behavior with IE by switching document mode to IE7.
I made a LOT of tries with css / html and the only configuration finally doing fine is the one I included with the patch.
Updated by Chris Darts over 13 years ago
I've just applied this patch with v1.1.1 and it works fine. I also use the patch from #2024 and there seems to be no conflict with regards to the layout.
I've tested it in FireFox 3.6 and Chrome 9.0.597.9 on Ubuntu 10.10. Not tried IE I'm afraid.
Thanks for this great patch.
Updated by Jean-Philippe Lang over 13 years ago
- Status changed from 7 to Closed
Updated by Etienne Massip over 13 years ago
Are you sure ?
This is pretty regressive for IE6 users (and they are still numerous) if they use Gantt+avatars.
That would be nice to have it fixed too as we know there is a solution (at least one).
Updated by Anonymous over 13 years ago
Now that Microsoft is even trying to kill IE6, see http://ie6countdown.com/ , I wonder if it still worth the effort to provide workarounds specific for IE6. Fact is that it is a 10 year old browser which doesn't follow web standards.
Updated by Etienne Massip over 13 years ago
IE6 is far from being dead ; about 3.6 % as for Jan. 2011, which is more than Opera.
My company switched to IE8 only 2 months ago.
I think we should suport it.
Updated by Ruben Kruiswijk over 13 years ago
Why are the gantt fixes made in the application.css and not in a separate css file? Custom themes/stylesheets are not getting updated this way. This doesn't apply to this issue only of course.