html font-size hard coded vs stylesheet defined glitch in tracking gantt chart

24 views
Skip to first unread message

Bas de Bruijn

unread,
Feb 15, 2013, 2:45:56 PM2/15/13
to taskjug...@googlegroups.com
Hi Developers,
I am at a loss in finding how get the font size in the column describing the task to follow the stylesheet. It seems that the font-size is hard coded (please see attached partial screenshot). Searching the source code i can not find where it is determined. I'd like to fix this but i need some help with this.

my stylesheet is as follows:
/* This is the text label of a cell. */
.tj_table_cell_label {
  font-size:12px;
  vertical-align:top;
  padding-top:1px;
}

I found the following code in line 75 and following in /lib/taskjuggler/reports/ReportTableLine.rb
------
    # Return this line as a set of XMLElement that represent the line in HTML.
    def to_html
      style = ""
      style += "height:#{@height}px; " if @table.equiLines
      style += "font-size:#{@fontSize}px; " if @fontSize
      tr = XMLElement.new('tr', 'class' => 'tabline', 'style' => style)
      @cells.each { |cell| tr << cell.to_html }
      tr
    end
-----

Seems to me that there is a @fontsize defined or set somewhere, but i can not find and fix it.

Much appreciated,

Bas

Chris Schlaeger

unread,
Feb 17, 2013, 7:53:12 AM2/17/13
to taskjug...@googlegroups.com
The size is dynamically calculated based on the indentation level. The deeper the level, the smaller the font.

Chris


--
--
You received this message because you are subscribed to the "TaskJuggler Development" group.
To post to this group, send email to taskjug...@googlegroups.com
To unsubscribe from this group, send email to
taskjuggler-d...@googlegroups.com
For more information about TaskJuggler visit http://www.taskjuggler.org.
 
---
You received this message because you are subscribed to the Google Groups "TaskJuggler Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taskjuggler-d...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Screen Shot 2013-02-15 at 8.28.44 PM.png

Bas de Bruijn

unread,
Feb 17, 2013, 8:18:31 AM2/17/13
to taskjug...@googlegroups.com
I have commented out the defining @fontSize in ReportTableCell.rb. Works for my current need.
Thanks,
Bas
<Screen Shot 2013-02-15 at 8.28.44 PM.png>

--
--
You received this message because you are subscribed to the "TaskJuggler Development" group.
To post to this group, send email to taskjug...@googlegroups.com
To unsubscribe from this group, send email to
taskjuggler-d...@googlegroups.com
For more information about TaskJuggler visit http://www.taskjuggler.org.
 
---
You received this message because you are subscribed to the Google Groups "TaskJuggler Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taskjuggler-d...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages