OFBiz
  1. OFBiz
  2. OFBIZ-4396

Project Manager Gantt chart does not display correctly using any of the visual themes

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: Release 10.04
    • Fix Version/s: None
    • Environment:

      RHEL 5.5
      JDK 1.6
      MySQL 5

      Description

      The Gannt chart displays incorrectly in every browser and using any visual theme. The chart does not align the task on the left to the progress bar on the right. The problem is bad to severe depending on which visual theme you have enabled. I have even updated to the latest JSGantt some improvement but does not fix it.

        Activity

        Show
        BJ Freeman added a comment - does what you see look like: https://demo-trunk.ofbiz.apache.org:8443/projectmgr/control/ganttChart?projectId=9000
        Hide
        Tolulope Aganga-Williams added a comment -
        Show
        Tolulope Aganga-Williams added a comment - No, i'm using the latest 10.04 build. I took a screenshot https://docs.google.com/leaf?id=0ByTpzTzHJA_tODRjMWQ4ZjYtYzI1Zi00ZjNiLTlmMDktNjQ3NDJjYTk0NWU2&hl=en_US
        Hide
        BJ Freeman added a comment -

        I suggest you either upgrade to trunk or go through the commits to see what has been added that fixed this.
        I also use eclipse and view the SVN history for a component, this helps in tracking down the commit(s) that I need.

        Show
        BJ Freeman added a comment - I suggest you either upgrade to trunk or go through the commits to see what has been added that fixed this. I also use eclipse and view the SVN history for a component, this helps in tracking down the commit(s) that I need.
        Hide
        Tolulope Aganga-Williams added a comment - - edited

        I updated my installation to trunk (fresh folder) the issue still exists. It seems that once you add more phases/tasks the display breaks.

        BJ i added some more phases/tasks to the demo site you can see the shift happening on the gannt chart. Thoughts?

        thanks

        Show
        Tolulope Aganga-Williams added a comment - - edited I updated my installation to trunk (fresh folder) the issue still exists. It seems that once you add more phases/tasks the display breaks. BJ i added some more phases/tasks to the demo site you can see the shift happening on the gannt chart. Thoughts? thanks
        Hide
        BJ Freeman added a comment -

        component://projectmgr/webapp/projectmgr/project/gantChart.ftl
        <div style="position:relative" class="gantt" id="GanttChartDIV"></div>
        is where I would start.
        Look in the CSS file to see what is being used.

        Show
        BJ Freeman added a comment - component://projectmgr/webapp/projectmgr/project/gantChart.ftl <div style="position:relative" class="gantt" id="GanttChartDIV"></div> is where I would start. Look in the CSS file to see what is being used.
        Hide
        Tolulope Aganga-Williams added a comment -

        I played around with that but couldn't fix the issue. It seems similar to

        http://code.google.com/p/jsgantt/issues/detail?id=54

        But i made the changes and tried his patched js file with no improvement.

        Show
        Tolulope Aganga-Williams added a comment - I played around with that but couldn't fix the issue. It seems similar to http://code.google.com/p/jsgantt/issues/detail?id=54 But i made the changes and tried his patched js file with no improvement.
        Hide
        BJ Freeman added a comment -

        I use
        http://sourceforge.net/projects/openproj/
        so i will not be much more help.

        Show
        BJ Freeman added a comment - I use http://sourceforge.net/projects/openproj/ so i will not be much more help.
        Hide
        Tolu Williams added a comment -

        Maybe someone else will pick it up. I think this module has legs the
        bugs should be fixed

        I already have ms project but it would be nice to have an integrated
        system. Isn't that the point?

        Sent from my iPhone

        Show
        Tolu Williams added a comment - Maybe someone else will pick it up. I think this module has legs the bugs should be fixed I already have ms project but it would be nice to have an integrated system. Isn't that the point? Sent from my iPhone
        Hide
        BJ Freeman added a comment -

        Yes, and I integrated it in my version that is based on ofbiz Architecture and modeling.
        Most of my UI is SWT. And like the GNATT.JS used a ftl to pass data to the JS I use widgets to pass data to the SWT client.

        Show
        BJ Freeman added a comment - Yes, and I integrated it in my version that is based on ofbiz Architecture and modeling. Most of my UI is SWT. And like the GNATT.JS used a ftl to pass data to the JS I use widgets to pass data to the SWT client.
        Hide
        Tolulope Aganga-Williams added a comment -

        Any one else have any ideas/suggestions? i've been tweaking the jsgantt.js file for the past week with no success.

        Show
        Tolulope Aganga-Williams added a comment - Any one else have any ideas/suggestions? i've been tweaking the jsgantt.js file for the past week with no success.
        Hide
        Jacques Le Roux added a comment -

        I guess you also tried the last trick : <<Change gname and gdatehead (in code, not in css) to 19 instead of 20>>?
        But anyway, from your report about theme, it's much certainly related to them :/

        Show
        Jacques Le Roux added a comment - I guess you also tried the last trick : <<Change gname and gdatehead (in code, not in css) to 19 instead of 20>>? But anyway, from your report about theme, it's much certainly related to them :/
        Hide
        Tolu Williams added a comment -

        Yes I tried that. No luck.

        Sent from my iPhone

        Show
        Tolu Williams added a comment - Yes I tried that. No luck. Sent from my iPhone
        Hide
        Tolulope Aganga-Williams added a comment -

        Anyone else had any success with rectifying this issue?

        Show
        Tolulope Aganga-Williams added a comment - Anyone else had any success with rectifying this issue?
        Hide
        Tolulope Aganga-Williams added a comment -

        This should be considered a bug with OFBIZ. The gantt chart should resemble the output as seen on the jsgantt website

        www.jsgantt.com

        I urgently need this fixed, would like to sponsor it.

        Show
        Tolulope Aganga-Williams added a comment - This should be considered a bug with OFBIZ. The gantt chart should resemble the output as seen on the jsgantt website www.jsgantt.com I urgently need this fixed, would like to sponsor it.
        Hide
        BJ Freeman added a comment -

        Suggest you directly contact the author
        http://svn.apache.org/viewvc?view=revision&revision=931925

        Show
        BJ Freeman added a comment - Suggest you directly contact the author http://svn.apache.org/viewvc?view=revision&revision=931925
        Hide
        Jacques Le Roux added a comment -

        Unfortunately, I think it's not only related to this part of the work but also to themes...

        Show
        Jacques Le Roux added a comment - Unfortunately, I think it's not only related to this part of the work but also to themes...
        Hide
        Tolulope Aganga-Williams added a comment -

        Yes, the old 10.04 basic theme seemed to handle it much better (not perfect but much closer to the one at jsgantt,) can we just make a blank page with a button to generate the graph in a separate pop up window, one that has no styles applied? I would also add to print to pdf and print to JPEG for including it in other documents.

        This PROJECT MGR module is usable, just a bit of work to get this part of it correct.

        Show
        Tolulope Aganga-Williams added a comment - Yes, the old 10.04 basic theme seemed to handle it much better (not perfect but much closer to the one at jsgantt,) can we just make a blank page with a button to generate the graph in a separate pop up window, one that has no styles applied? I would also add to print to pdf and print to JPEG for including it in other documents. This PROJECT MGR module is usable, just a bit of work to get this part of it correct.
        Hide
        BJ Freeman added a comment -

        The Link I gave shows a css just for gnatt chart.
        So I would look if this css is loaded after the Themes or before.
        Then look to see if any css in themes has any thing related tot he gnatt chart.
        Due to my time, I don't have time to do this.

        Show
        BJ Freeman added a comment - The Link I gave shows a css just for gnatt chart. So I would look if this css is loaded after the Themes or before. Then look to see if any css in themes has any thing related tot he gnatt chart. Due to my time, I don't have time to do this.
        Hide
        Tolulope Aganga-Williams added a comment -

        Ok, your link didn't have any context when you posted it. I'll look into it.

        Show
        Tolulope Aganga-Williams added a comment - Ok, your link didn't have any context when you posted it. I'll look into it.
        Hide
        Erwan de FERRIERES added a comment -

        have you tried on the trunk ?
        Is it only related to 10.04 ?

        Show
        Erwan de FERRIERES added a comment - have you tried on the trunk ? Is it only related to 10.04 ?
        Hide
        Tolulope Aganga-Williams added a comment - - edited

        Erwan, it is in the trunk also, you can see the issue in the Demo environment if you add a bunch of phases and tasks.

        Just load the demo-trunk ofbiz at the following url

        https://demo-trunk.ofbiz.apache.org:8443/projectmgr/control/ganttChart?projectId=9000

        Thanks!

        Show
        Tolulope Aganga-Williams added a comment - - edited Erwan, it is in the trunk also, you can see the issue in the Demo environment if you add a bunch of phases and tasks. Just load the demo-trunk ofbiz at the following url https://demo-trunk.ofbiz.apache.org:8443/projectmgr/control/ganttChart?projectId=9000 Thanks!
        Hide
        Erwan de FERRIERES added a comment -

        if you remove totally the theme CSS, then the Gantt is well displayed. You should search this way to make it work, by understanding which properties are in conflict.

        Show
        Erwan de FERRIERES added a comment - if you remove totally the theme CSS, then the Gantt is well displayed. You should search this way to make it work, by understanding which properties are in conflict.
        Hide
        Tolu Williams added a comment -

        I just started looking at the theme now, but being that there is no single
        theme in the trunk that display this thing correctly shouldn't this be
        classified as a bug? Whats a work around, i can't use ofbiz and disable the
        theme for some pages. There are several places where this thing could be
        broken. Would a quick fix be to just pop the gantt chart in a seperate
        window that has no style?

        Thanks.

        On Mon, Oct 3, 2011 at 5:17 PM, Erwan de FERRIERES (Commented) (JIRA) <


        Tolu Williams
        Principal Consultant
        www.cultureshockmedia.com
        (240) 353-6742

        Show
        Tolu Williams added a comment - I just started looking at the theme now, but being that there is no single theme in the trunk that display this thing correctly shouldn't this be classified as a bug? Whats a work around, i can't use ofbiz and disable the theme for some pages. There are several places where this thing could be broken. Would a quick fix be to just pop the gantt chart in a seperate window that has no style? Thanks. On Mon, Oct 3, 2011 at 5:17 PM, Erwan de FERRIERES (Commented) (JIRA) < – Tolu Williams Principal Consultant www.cultureshockmedia.com (240) 353-6742
        Hide
        Erwan de FERRIERES added a comment -

        Sure this is a bug, and your contribution is very welcome to correct and improve the project !

        Show
        Erwan de FERRIERES added a comment - Sure this is a bug, and your contribution is very welcome to correct and improve the project !
        Hide
        Erwan de FERRIERES added a comment -

        BTW, gantt chart is well displayed with firefox and tomawhak theme

        Show
        Erwan de FERRIERES added a comment - BTW, gantt chart is well displayed with firefox and tomawhak theme
        Hide
        Tolulope Aganga-Williams added a comment -

        Thanks Erwan, its actually displayed FLAWLESSLY in Google chrome with the Tomahawk theme.

        Its an ugly ass theme though but i will take what i can get. I'll try to find time and troubleshoot the issue in my favorite theme.

        Thanks!

        Show
        Tolulope Aganga-Williams added a comment - Thanks Erwan, its actually displayed FLAWLESSLY in Google chrome with the Tomahawk theme. Its an ugly ass theme though but i will take what i can get. I'll try to find time and troubleshoot the issue in my favorite theme. Thanks!
        Hide
        Jacques Le Roux added a comment -

        Why don't you like Tomahawk? It's currently our default theme and most advanced, though it does not handle RTL languages

        Show
        Jacques Le Roux added a comment - Why don't you like Tomahawk? It's currently our default theme and most advanced, though it does not handle RTL languages
        Hide
        Tolulope Aganga-Williams added a comment -

        Well, the layout is fine, the colors are pretty jarring to me. I supposed i could tweak the css to my liking right?

        Show
        Tolulope Aganga-Williams added a comment - Well, the layout is fine, the colors are pretty jarring to me. I supposed i could tweak the css to my liking right?
        Hide
        Jacques Le Roux added a comment -

        yes sure, it's up to you. You could even contribute the result of your work as a new theme (based on Tomahawk). This is actually how it works...

        Show
        Jacques Le Roux added a comment - yes sure, it's up to you. You could even contribute the result of your work as a new theme (based on Tomahawk). This is actually how it works...
        Hide
        Tolulope Aganga-Williams added a comment -

        Of course! but you only want to contribute useful, working code back. Also i don't believe i have commit privileges.

        Show
        Tolulope Aganga-Williams added a comment - Of course! but you only want to contribute useful, working code back. Also i don't believe i have commit privileges.
        Hide
        BJ Freeman added a comment -

        Either change the Flat Grey or Create a New theme that has all the bells an whistles you want an Give you the support for the Gnatt and submit a patch to this Jira

        Show
        BJ Freeman added a comment - Either change the Flat Grey or Create a New theme that has all the bells an whistles you want an Give you the support for the Gnatt and submit a patch to this Jira
        Hide
        Jacques Le Roux added a comment -

        You don't need commit privileges. Simply submit a patch as BJ suggested. You may follow https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices to help you

        Show
        Jacques Le Roux added a comment - You don't need commit privileges. Simply submit a patch as BJ suggested. You may follow https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices to help you
        Hide
        Tolulope Aganga-Williams added a comment -

        Thanks for the pointers!

        Show
        Tolulope Aganga-Williams added a comment - Thanks for the pointers!
        Hide
        BJ Freeman added a comment -
        Show
        BJ Freeman added a comment - https://issues.apache.org/jira/browse/OFBIZ-3490 may be helpful

          People

          • Assignee:
            Unassigned
            Reporter:
            Tolulope Aganga-Williams
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development