On Sun, Jan 11, 2009 at 06:31:35PM +0000, corvid wrote:
Johannes wrote:
On Sun, Jan 11, 2009 at 05:09:24PM +0000, corvid wrote:
I wrote:
Johannes wrote:
On Sun, Jan 11, 2009 at 09:00:51AM -0300, Jorge Arellano Cid wrote:
On Sun, Jan 11, 2009 at 01:00:14AM +0000, corvid wrote: > Johannes wrote: > > On Fri, Jan 09, 2009 at 11:58:54PM +0100, Hofmann Johannes wrote: > > > I think the html part needs not be changed. Everything is available > > > in style already. > > > I've attached a quick patch that seems to work for fixed sizes. > > > It does not handle something like width="50%" however. > > > > As the patch works rather well for me and improves the current > > behaviour, I've cleaned it up a bit (avoiding a possible division by > > 0) for inclusion into main. > > Loading an image scales properly for me, but I still see > lack of scaling when I leave a page and come back. > Is that supposed to work now?
Yes, it is supposed to work.
Altough now that you mention it, I have problems the *first* time a only-one-dimension-specified image tag is loaded. Once coming back it works OK. This is because the second time the image dimensions are known from the dicache.
Patch 8f7293125059 from main fixes this.
Johannes: please test and merge.
Done.
corvid, can you please verify that this fixes the issue you were seeing?
Same problem for me still. It turns out that
<img src="http://www.dillo.org/wearlab.png" height=20>
in isolation works fine, but
<a href="http://auriga.wearlab.de/"> <img src="http://www.dillo.org/wearlab.png" height=20> </a>
doesn't.
Ah, it works for me with css-prototype but not with main. I didn't realize there would be any difference.
There shouldn't be any difference...
main works for you, then? Hmm.
It works for me.
It gets the size of the box right, but then the rgb data inside it isn't scaled.
(...which is the behaviour I've always seen with fltk-era dillo when returning to pages. On the original load, I would get stretched images, but that's been fixed now.)
If main doesn't work for you, please share the sample HTML/img code that faults? -- Cheers Jorge.-