[josm-dev] ewmsplugin - webkit-image bug
Dirk Stöcker
openstreetmap at dstoecker.de
Fri Dec 19 07:49:10 GMT 2008
On Fri, 19 Dec 2008, Robert Scott wrote:
>> I think this I tried and it failed. Together with multiple tries to set
>> the stuff in QApplication screen handling.
>
> Well you see, you're using QWebView, which is the QWidget container for
> QWebKit. The widget and windowing system is not really needed at all here* -
> you can just use plain old QWebPage which can render to an arbitrary
> QPainter.
This does not change anything.
The problem is that JavaScripts's resizeTo() uses the screen size as outer
boundaries. So a resize to 500,1500 is changed into a e.g. 500,1024.
So the only solution to me is that we need to tell the system that the
screen is indeed 2000x2000, so JavaScript's resize will use correct
values. But as said: Till now I never find a way to trick whole Qt into
another screen resolution, nor did I find a way to access the document DOM
and change JavaScripts screen values.
Ciao
--
http://www.dstoecker.eu/ (PGP key available)
More information about the josm-dev
mailing list