Project

General

Profile

runtime paintbrush view scaling

Added by Alessandro Giuliani over 6 years ago

Hello,

I am creating a view based on paintbrush example ( https://www.webtoolkit.eu/widgets/graphics-charts/paintbrush ).

It is working well, however I would like that its dimensions do not change following browser resolution (now user with high resolution see little paintbrush view, user with low resolution see a big painbrush). The best would be to scale proportionally, like the following example (trick that works for wt videos but not for paintbrush).. https://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php

Any suggestions will be appreciated! Thanks in advance.

Regards,

Alex


Replies (1)

RE: runtime paintbrush view scaling - Added by Wim Dumon over 6 years ago

I'm not sure if this is possible. In Wt you can query the device dpi from WEnvironment, but I never checked if it reacts on user zoom. Additionally, it will not react on zoom level changes after the application was started.

I'm not aware of other tricks that may work, google may be smarter than me ;-)

Wim.

    (1-1/1)