From: dan t. <dan...@go...> - 2010-02-24 22:10:23
|
Hi, I'm having some trouble putting together a basic GWT-OpenLayers app. It's just a full-screen MapWidget connecting to a WMS. The problem is that, when the page initially loads, the map only appears in the top left-hand corner of the page. If I drag the map, or zoom in/out, then the map resizes to cover the whole window. I guess that somehow the size of the Div/Widget isn't being set correctly; perhaps somehow OpenLayers is getting its size/position too early, and then drawing in the wrong place? I've tried to find an event I can listen for to tell me when the page as loaded, and so allow me to (attempt to) resize/redraw the map, but I can't find one, and I've no idea if it would work anyway. Does anyone have any ideas? For the record, I'm in Standards mode using a RootLayoutPanel, although I hope that's not the problem as I'd really rather to change to Quirks mode. Thanks for your help. dan |