Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » HTML browser img tag does not use aspect ratio
HTML browser img tag does not use aspect ratio [message #1855727] Fri, 28 October 2022 12:10 Go to next message
Eclipse UserFriend
Dear all,
I am using SWT HTML browser but it seems it does not resize the image and keep the aspect ratio e.g.

<img src="myImage.png" alt="myImage" width="50%" />

<img src="myImage.png" alt="myImage" width="300" />

Does not change the image size. What should I use to resize the image and keep the aspect ratio?

Best regards!
Re: HTML browser img tag does not use aspect ratio [message #1855739 is a reply to message #1855727] Sun, 30 October 2022 00:33 Go to previous message
Eclipse UserFriend
On Windows, default browser is IE. This will be available up to 2027. Optionally you can use Edge with SWT.EDGE option. But you also need to install WebView2 runtime to work.
Previous Topic:SWT 4.25 ToolBar ToolItem icon image wrong transparent color
Next Topic:Scrolling Issue with ScrolledFormText
Goto Forum:
  


Current Time: Sat Jul 12 11:09:43 EDT 2025

Powered by FUDForum. Page generated in 0.03682 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top