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 |
State ⇒ Resolved
Assigned to
State ⇒ Assigned
function hex(dec)
{
return (dec).toString(16);
}
Scott.
function hex(dec)
{
return (dec).toString(16);
}
Scott.
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.
State ⇒ Feedback
javascript and give us a set of coordinates which produces the problem?
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Category Labels Background Color Problem
Queue ⇒ Horde Framework Packages
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'