Index: [Article Count Order] [Thread]

Date:  Tue, 9 Sep 2008 12:33:09 -0400
From:  Jeremy Knope <jerome (at mark) rainstormconsulting.com>
Subject:  [coba-e:13903] Re: Safari Browser & Bluequartz
To:  coba-e (at mark) bluequartz.org
Message-Id:  <C79C4A23-CD0F-416F-B8CE-BDB0BEE3E572 (at mark) rainstormconsulting.com>
In-Reply-To:  <200809091805.55863.bq (at mark) solarspeed.net>
References:  <1d4c951a0809062116y6acc0097n4754ccfe85a134e2 (at mark) mail.gmail.com> <200809091605.45319.bq (at mark) solarspeed.net> <ED3537A7-6C86-40FE-B96F-B1D70BDAB769 (at mark) rainstormconsulting.com> <200809091805.55863.bq (at mark) solarspeed.net>
X-Mail-Count: 13903

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();