I'm in the process of porting a development environment to GWT in which screens are designed based on exact pixel locations and sizes. So I need to be able to create (e.g.) a ToggleButton with a total size on the screen of 90 pixels wide by 25 pixels high. The problem, of course, is if I call ToggleButton.setPixelSize(90,25), I might end up with a ToggleButton with a total rendered size of (102,33), depending on the precise CSS rules. Is there a simple way to ask a UIObject how much space is used by its decorations so I can adjust setPixelSize() accordingly? (IOW, I'd like to be able do do something like: myUIObject.setPixelSize(totalwidth-overhead_of_horizontal_decorations, totalheight-overhead_of_vertical_decorations)).
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
