I'm using a DockPanel with a menu in DockPanel.WEST and the main content in DockPanel.CENTER. The width of the WEST and CENTER cells are set with something like
myDockPanel.setCellWidth(menu, "20%"); myDockPanel.setCellWidth(content, "80%"); My problems start when i want to print a page - but not the menu. I disable the block (a custom Composite) with the menu in it using css (display:none). That kinda works, as the menu is hidden. The WEST part of the DockPanel however is a table cell which looks something like this ... <td width="20%"> ... and that one is still there :-( So in my printouts there are a fat, empty space on the left side. I have been unable to find a way to add a styleclass to a specific part of the DockPanel so it can be hidden. The best hack i've found is to get the html for the whole DockPanel (myDockPanel.getElement().getInnerHTML()) and then do a few "String.replace" where 20%-->0% and 80%-->100%. It works but its UGLY - and error prone. I'm also dreading to have to write som java-doc for that pile of rubbish :S help. regards Michael Heide Christensen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---