6.0.0-beta1
9/20/25

[#1204] Category Labels Background Color Problem
Summary Category Labels Background Color Problem
Queue Horde Framework Packages
Type Bug
State Resolved
Priority 2. Medium
Owners Horde Developers (at) , jan (at) horde (dot) org
Requester scott (at) realorganized (dot) com
Created 01/20/2005 (7548 days ago)
Due
Updated 01/21/2005 (7547 days ago)
Assigned 01/20/2005 (7548 days ago)
Resolved 01/21/2005 (7547 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/21/2005 04:10:43 AM Chuck Hagenbuch Comment #6
State ⇒ Resolved
Reply to this comment
That fix works beautifully - thanks! Fixed in CVS and will be in Horde 3.0.3.
01/20/2005 11:27:08 PM Jan Schneider Assigned to Jan Schneider
Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
01/20/2005 11:08:19 PM scott (at) realorganized (dot) com Comment #5 Reply to this comment
I think there's a more elegant solution.



function hex(dec)

{

     return (dec).toString(16);

}



Scott.
01/20/2005 11:06:05 PM scott (at) realorganized (dot) com Comment #4 Reply to this comment
I think there's a more elegant solution.



function hex(dec)

{

     return (dec).toString(16);

}



Scott.
01/20/2005 10:53:43 PM scott (at) realorganized (dot) com Comment #3 Reply to this comment
I can get this problem to happen using Safari browser version 1.24.   
This problem does not happen using Firefox browser.  This leads me to 
believe it is a JavaScript incompatability with Safari.



I took a look at the JavaScript and believe the problem is here:



function hex(dec)

{

     if (dec == 10) return 'A';

     if (dec == 11) return 'B';

     if (dec == 12) return 'C';

     if (dec == 13) return 'D';

     if (dec == 14) return 'E';

     if (dec == 15) return 'F';

     if (dec == 0) return '0'; // SDS - Safari browser incorrecly 
returns - instead of 0 with implicit conversion from number to string

     return '' + dec;

}



When dec is 0 safari returns '-' when it should return 0.  I made the 
above one line change and the code works under Safari now.
01/20/2005 07:42:38 PM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
I can't reproduce this. Can you put some debugging code into the 
javascript and give us a set of coordinates which produces the problem?
01/20/2005 02:39:09 PM scott (at) realorganized (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Category Labels Background Color Problem
Queue ⇒ Horde Framework Packages
Reply to this comment
When I edit the category labels background color - from the main 
options menu selecting the categories and labels tab.



Click on the color picker.

Move your mouse around to pick a color

note the hex values in lower left hand corner of the color picker

some of my color values are of form -0-0-FF

If any of these are picked both the fore and background color of the 
label are white and therefore the label is invisible.

Pick a color which is expected value like FFFFFF and all is OK.



I believe this is caused by conversion of hex value from number to 
string and not filling in leading 0 if the value is 0-F.



Configuration Information



Accounts: 3.0-cvs (run Accounts tests)

Genie: 1.0-cvs

Horde: 3.0.2

Kronolith: H3 (2.0.1)

Mnemo: H3 (2.0)

Nag: H3 (2.0)

Passwd: 3.0-cvs

Scry: 0.1-cvs

Turba: 2.0-cvs (run Turba tests)

Whups: 1.0-cvs



PHP Version: 4.3.9



configure:

'./configure' '--prefix=/Library/PHP4' 
'--with-apxs2=/Library/Apache2/bin/apxs' '--with-openssl=/usr' 
'--with-zlib=/usr' '--enable-calendar' '--enable-shared' 
'--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' 
'--enable-session' '--enable-sockets' '--enable-tokenizer' 
'--enable-wddx' '--with-xml' '--enable-yp' '--enable-versioning' 
'--enable-trans-id' '--enable-track-vars' '--with-mysql=/Library/PHP4' 
'--with-ldap=/usr' '--with-iodbc=/Library/PHP4' '--with-gd' 
'--with-jpeg-dir=/Library/PHP4' '--with-png-dir=/Library/PHP4' 
'--enable-xslt' '--with-xslt-sablot=/Library/PHP4' 
'--with-pdflib=/Library/PHP4' '--with-tiff-dir=/Library/PHP4' 
'--with-pgsql=/Library/PHP4' '--with-iconv' 
'--with-sybase=/Library/PHP4' '--with-mcrypt=/Library/PHP4' 
'--with-curl=/usr' '--with-freetype-dir=/Library/PHP4' 
'--with-ttf=/Library/PHP4' '--with-gettext=/Library/PHP4' 
'--with-xmlrpc' '--with-mime-magic' '--with-pspell=/Library/PHP4' 
'--with-expat-dir=/Library/Apache2' '--with-t1lib=/Library/PHP4' 
'--enable-dbx' '--with-imap=/Library/PHP4' '--with-imap-ssl=/usr' 
'--enable-cli' '--without-xpm-dir' '--enable-dbase' '--with-bz2=/usr' 
'--enable-cgi' '--with-pear' '--with-java' '--with-dom=/Library/PHP4' 
'--with-dom-xslt=/Library/PHP4' '--with-dom-exslt=/Library/PHP4' 
'--with-snmp=/Library/PHP4' '--enable-ucd-snmp-hack' 
'--with-mhash=/Library/PHP4' '--with-ming=/Library/PHP4' '--with-pear' 
'--enable-shmop' '--with-mcal=/Library/PHP4' 
'--with-gmp=/Library/PHP4' '--enable-dio' '--enable-bcmath' 
'--enable-ctype' '--enable-dba' '--with-cdb' '--enable-gd-native-ttf' 
'--with-zip=/Library/PHP4'




Saved Queries