Patches: Browse | Submit New | Admin

[#5169] change graph header size depending on whether legend/title is displayed

Date:
2006-07-24 01:02
Priority:
3
Submitted By:
Adam Greene (greene)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
change graph header size depending on whether legend/title is displayed

Detailed description
If you don't show a title or hide the legend, the space reserved for that information is still set aside in the output.
I changed the code so the header will shrink/expand depending on whether this information is going to be displayed or
not.

I added some constants and protected methods to abstract a little bit of pixel counting and to keep it DRY.  It can
easily be changed if it goes too far.

I've never submitted a ruby patch.  If I have done this incorrectly, please let me know and I'll make it right.

thank you for the awesome library!
Adam

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
gruff_header_0.1.2.patch centered and wrapped header size patch against 0.1.2 Download

Changes:

Field Old Value Date By
File Added698: gruff_header_0.1.2.patch2006-07-24 01:02greene