The honest truth?
As I tend to, I overcomplicate everything.
Basically, all of my Panels are absolutely positioned on the screen as
a ratio of screen width and height.
All of my widgets get the proprietary IE css property hasLayout=-1.
This is the style property to look for when debugging your stylesheets
in IE. {Use the script debugger, which, on the VirtualBox vhd copies
of XP and Vista that Micro$oft gives away, is either preinstalled or
has installers on the desktop}.
Anyway, making all of my widgets as absolute ratios of width/height
means I've also got to change global font sizes to match accordingly,
which is done using the StyleInjector from the gwt incubator. Using
Window.addResizeHandler() to call a screen refresh, I can change my
style Element's innerHTML to new font sizes, and to iterate through
all of my ratio-dependant resize tasks. There's also a terrible hack
to make the screen redraw at various intervals using an
IncrementalCommand so Element's whose size are ratios of other
Elements' sizes get appropriate values, and a method to perform
instant redraws.
This is one of my messiest classes, and I'm working on a much more
efficient, gwt-compliant Handler class to replace it, but I've got
source up at:
http://www.aiyx.info/xSrc.html#xSource/xBook/xResizables/client/xSizeListenor.java
WARNING: There's a bunch of dependancies and linked classes, as this
is just a small piece of a much bigger puzzle; you should be able to
navigate to any external dependancies, but other classes in the
xBook.xResizables.client package won't be visible on that link until I
update my xSrcViewor class to get a directory list from the server...
@Salvador -lol, lmgtfy.com? I love it... I'm so using that now!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---