Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 16:10 Go to next message
Ibraheem DH is currently offline Ibraheem DHFriend
Messages: 1
Registered: October 2022
Junior Member
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 04:33 Go to previous message
Martin J is currently offline Martin JFriend
Messages: 50
Registered: August 2015
Member
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: Mon May 06 13:10:58 GMT 2024

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

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

Back to the top