[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: window.resizeTo() problem - a testcase
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-02-25 16:26:50
[Download RAW message or body]

On Friday 22 February 2002 07:12, Pavel Troller wrote:
> Hi!
>   Today I found an insteresting case which is not working well in konq.
>   Please try it at http://sinux.sinus.cz/~patrol/winresize.html
>   There is a picture of a mobile phone. It's not so interesting (although
> it's a new model :-) ) but the page should resize (at least the JS tries
> to do it, it seems) on load but it doesn't.

The resizeTo() isn't the problem.
The problem is that onLoad is emitted before the loading of images, so at
this point in time, the image size isn't known, and width and height return 0.
So the resizeTo() attempts to resize to 30x50, which is forbidden by the spec
(100x100 is the minimum IIRC), so nothing happens.

Two questions arise from that: do all browsers emit onLoad() before images
are loaded, and what happens if the <img> tag contains explicit width and height
attributes ?

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david, http://www.konqueror.org
KDE 3.0: Konquering the Desktops


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic