Community
Participate
Working Groups
As a mobile web developer, I would like to easily preview what my web page looks like on a phone. It would be nice if the embedded Eclipse browser could allow me to set a specific target size for the rendered HTML.
Created attachment 265673 [details] image: part containing a browser Perhaps we can contribute a part containing a control bar and a browser. So the browser can be resized based on the resolution selected by the user.
(In reply to Patrik Suzzi from comment #1) > Perhaps we can contribute a part containing a control bar and a browser. So > the browser can be resized based on the resolution selected by the user. Rather than a new part, it would be much more convenient if this could be offered as an option is the existing browser. I can imagine this would just a new button or even context menu on the browser with "Size >" and possible value * Fill * The 5 most common screen sizes (https://deviceatlas.com/blog/most-popular-smartphone-screen-resolutions-2015) * Custom... , which would prompt user for width/height. On selection of one of those values, it might be only a matter of setting the Layout data of the Browser widget in the browser editor and to run "layout(true)" and refresh on the browser.
@Mickael, I don't think this is as easy as to simply just change the browser layout. The correct way of testing the web application would be to spoof the user-agent so that the web application thinks that it is being received from a mobile device and also with certain dimensions.