On Sep 9, 2008, at 12:05 PM, Michael Stauber wrote:
> Hi Jeremy,
>
>> I just examined it in inspector, the table seems to have margin or
>> padding above it, though attempts to try that route and setting it to
>> 0 etc. failed.
>
> That would have been where I'd have looked first, too.
>
>> What did work is this (in js console to test):
>>
>> myTable = frames[0].document.body.getElementsByTagName('table')[0];
>> myTable.style.position = 'absolute';
>> myTable.style.top = 0;
>>
>> after that it's perfect (see attached):
>
> Looks good indeed. I'm trying to find out where this needs to be
> coded into
> and now it hurts that I know very little about JavaScript. :p
>
> Can you give /usr/sausalito/ui/web/libJs/tab.js a look over and see
> if you
> possibly find a way to get this right? After a brief inspection I
> believe
> this is where we need to start looking.
>
>
thanks for the tip, here's what I did in diff form to tab.js and it
functions in my Safari 3.x browser (and firefox still is OK):
Index: web/libJs/tab.js
===================================================================
--- web/libJs/tab.js (revision 1120)
+++ web/libJs/tab.js (working copy)
@@ -67,7 +67,7 @@
doc.open();
doc.write("<HTML><BODY ALINK=\""+_tab_style["aLinkColor"]+"\"
STYLE=\""+_tab_style["backgroundStyle"]+"\">\n");
- doc.write("<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\"
WIDTH=\"100%\"><TR>\n");
+ doc.write("<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\"
WIDTH=\"100%\" style=\"position: absolute; top: 0px;\"><TR>\n");
doc.write("<TD VALIGN=\"TOP\">"+logo+"</TD>\n");
var typedItems = new Array();