[wxPython-users] how to make HTMLWindow preserve IMG aspect?
Margaret Tillman
m.tillman_wx at verizon.net
Fri Oct 26 09:18:24 PDT 2007
Hi, all:
Is there a way to preserve the aspect ratio of <IMG> sources in HTMLWin=
dow without specifying both WIDTH & HEIGHT?
=
Or do I have to override the <IMG tag, load the SRC file, compute it's =
aspect-maintained WIDTH & HEIGHT, and reprocess?
=
When I use the HTML markup below, in which Firefox 1.6+ and IE 5.5+ see=
m to maintain the image aspect by default,
HTMLWindow renders it as though "WIDTH =3D actual-width-of-pic.png", in=
stead of adjusting for aspect to given height.
=
<body TEXT=3D"#000000" BGCOLOR=3D"#7f7fff" LINK=3D"#0000FF" VLINK=3D"#FF000=
0" ALINK=3D"#000088">
<div height=3D"200">
<center><img height=3D"50" src=3D"pic.png"></img></center>
</div>
</body>
I am using wxPython 2.8, Python 2.5 under Windows XP SP2.
Thanks for any help you can offer,
Margaret TIllman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20071026/d13=
5de2e/attachment.htm
More information about the wx-users
mailing list