[SOLVED] What is 'CSS Units Convertion" settings option for?

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

[SOLVED] What is 'CSS Units Convertion" settings option for?

Postby peterblazejewicz » Fri Apr 04, 2008 10:32 am

hi all,
just quick question:
What is "Enable CSS units convertion" option is settings? I've spotted that in just installed update (4.0.0.20080404904)
Help docs are not updated to show that feature yet (under path: topic=/com.swtdesigner.help/html/gwt/preferences_gwt.html)


regards,
peter
Last edited by peterblazejewicz on Fri Apr 04, 2008 11:54 am, edited 1 time in total.
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Re: Q: What is 'CSS Units Convertion" settings option for?

Postby Alexander.Mitin » Fri Apr 04, 2008 11:46 am

This option enables or disables the size unit conversion from ex. "px" to "in", you can see this ability by right-clicking on the component. To be able to convert between unit we have to calculate the values of conversion, i.e. how much pixels in one inch. This operation rather time-consuming and can cause invalid UI rendering in some cases. By default it enabled for Windows and Mac OS X and disabled for Linux.
Disabling this option allows to speed up the design-time UI rendering of compex forms.
Alexander Mitin
Alexander.Mitin
Moderator
 
Posts: 155
Joined: Fri Jan 19, 2007 3:57 am

Re: Q: What is 'CSS Units Convertion" settings option for?

Postby peterblazejewicz » Fri Apr 04, 2008 11:53 am

hi Alexander,

aha, I see!
Also that is context-aware feature: it enables specific option only if default widget size is changed and only for given property (e.g. only for height [called vertical]),

thanks for that addition,
regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Re: Q: What is 'CSS Units Convertion" settings option for?

Postby Eric Clayberg » Fri Apr 04, 2008 12:35 pm

peterblazejewicz wrote:Also that is context-aware feature: it enables specific option only if default widget size is changed and only for given property (e.g. only for height [called vertical])

Yes. It only applies to widgets that have a horizontal or vertical size setting.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests