Hi,

another note.

> >> I've also noticed that RAP applications appear to use absolute
> positioning for every element and define some possibly redundant
> inline styles (e.g. border-color and/or border-style when border-width
> is 0). Is this because of qooxdoo or a choice made by the RAP
> developers (the more complex qooxdoo demos seem to use absolute
> positioning and inline styles)?
> >>   
> >>     
> >
> > I believe the main reason for this is the fact that in RAP layout is 
> > managed on the server, so they use absolute positioning on the client. 
> > I'm not sure about the inline styles.
> >   
> RAP uses the original SWT layout managers on the server side and thus 
> positions all qooxdoo widgets using absolute coordinates.  In qooxdoo 
> applications we usually avoid this and use dynamic layouts instead. 
> Custom RAP widgets will use dynamic layouts as well.

I think there's a misunderstanding. RAP does of course allow for
flexible layouts as well, using their regular SWT layout managers. It's
just that the DOM elements are positioned "absolute" in the CSS sense.
That's because qooxdoo works that way: qooxdoo's own layout managers
(which aren't used in RAP) do all the calculations themselves without
relying on HTML layouting capabilities (so more or less pure math). The
calculated positions are then used as coordinates for the DOM elements
that represent a qooxdoo widget. In short:

RAP: SWT layout managers -> calculation on the server (Java) 
-> absolute positioning of elements

qooxdoo: own layout managers -> calculation on the client (JavaScript)
-> absolute positioning of elements

Bye,

Andreas



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to