Re: Absolute positions, Amaya scroll bars and other problems

Le dimanche 23 novembre 2008 à 18:52 +0100, Ray Foulkes a écrit :
> If I try to edit the following code in Amaya (not including the "CODE" 
> tags of course):
> <CODE>
> 
> <html>
> <head>
>    <title>test of visibility</title>
>    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
> </head>
> 
> <body bgcolor="#FFFFCC">
> <p> test of scroll with fixed positioning </p>
> 
> <div
> style="position:absolute; left:355px; top:1016px; width:179px; 
> height:21px; z-index:32">
> <a href="#HAUT">You cannot see me</a></div>
> 
> <div
> style="position:absolute; left:977px; top:1px; width:38px; height:22px; 
> z-index:35">
> <a name="HAUT"></a></div>
> </body>
> </html>
> 
> </CODE>

> The browser of Amaya does not open up a scroll bar so there is no means 
> on my computer of seeing "you cannot see me". It is visible in Firefox 
> and IE6 if you scroll down. Now, I KNOW that this is all bad practice 
> html, but I have inherited large quantities of absolute positioned code 
> (yeuk) and need to start editing it.

Amaya doesn't generate scroll bars (too complex to manage in and editing
contex).
I suggest you to change Amaya Preferences. In the section "Browsing",
you uncheck the entry "Apply CSS".

It's strange to force the page height with a "top:1016px". A solution
could be to set a botton padding and set "bottom:22px" intead.

> Also, if I open the source view, then the source appears fine. BUT the 
> "source" button in the "views" menu is greyed out. If I uncheck the 
> "horizontal split" button the source view vanishes and will return ONCE, 
> but then NONE of menu items of "views" works any more. It is necessary 
> to shut down Amaya OR open up another file, in which case the "source" 
> view works ONCE (but only one time) again.

When the selection is in the source view,  you click in the source view
"source" button in the "views" menu is greyed out. But it must be reset
when you click in the formatted view.
I will check if I'm able to reproduce that bug?

> I am using Amaya 10.1 pre 5 dated October 17th on Windows XP sp2 on an 
> aging Pentium IV computer with 1 GB of RAM. Same result on 10.0
> 
> So, is this a bug or is my computer screwed in some way??
> 
> 
-- 
Irene Vatton <Irene.Vatton@inria.fr>
INRIA

Received on Tuesday, 25 November 2008 17:38:28 UTC