From: Bruce T. <blu...@ya...> - 2003-10-11 21:44:18
|
Here's the fix for HTMLMenu. It works for all of the Mozilla failures, but none of the IE. The IE failures appear to be a failure in the sub menu folding code because the dynapi.document.getHeight() function is returning 0. here's the diff (attached is the whole fixed file) Index: src/gui/htmlmenu.js =================================================================== RCS file: /cvsroot/dynapi/dynapi3x/src/gui/htmlmenu.js,v retrieving revision 1.10 diff -r1.10 htmlmenu.js 118c118 < str += '<div id="' + itemID + '" onclick="return '+this+'._e(\'click\','+currMenu+','+currItem+')" style="position: absolute; left: ' + itemX + '; top: ' + itemY + '; width: ' + w + '; height: ' + h + '; visibility: inherit; '; --- > str += '<div id="' + itemID + '" onclick="return '+this+'._e(\'click\','+currMenu+','+currItem+')" style="position: absolute; left: ' + itemX + 'px; top: ' + itemY + 'px; width: ' + w + 'px; height: ' + h + 'px; visibility: inherit; '; 262,263c262,263 < left = thisX; < top = thisY; --- > left = thisX +'px'; > top = thisY +'px'; --- Bruce Tennant <blu...@ya...> wrote: > Using the HTMLMenu example, I ran through the different DTDs and here > is a summary of what I found. > > When IE fails, the top menu is displayed correctly, but the sub menus > collapse and go up rather than down. > > When Mozilla fails, the top menu collapses and makes it hard to see > what the sub menus do. My guess is collapse and jump off to the far > left. > > > ##### Works in IE and Mozilla > ######################################## > No DTD given (both in default modes (quirks mode)) > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > > ##### Works in IE and NOT Mozilla > ######################################## > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <!DOCTYPE HTML PUBLIC "ISO/IEC 15445:2000//DTD HTML//EN"> > > <!DOCTYPE HTML PUBLIC "ISO/IEC 15445:1999//DTD HTML//EN"> > > ##### Works in Mozilla and NOT IE > ######################################## > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > > > ##### Does NOT Work in Mozilla or IE > ######################################## > > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" > "http://www.w3.org/TR/html4/strict.dtd"> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" > "http://www.w3.org/TR/html4/strict.dtd"> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > > "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > <!DOCTYPE HTML PUBLIC "ISO/IEC 15445:2000//DTD HyperText Markup > Language//EN"> > > <!DOCTYPE HTML PUBLIC "ISO/IEC 15445:1999//DTD HyperText Markup > Language//EN"> > > > > > ===== > www.bluewolverine.com > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help ===== www.bluewolverine.com __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |