Well, after a lot of hours I can make a workaround. If I refresh the panel
that envolve the datagrid it shows. The relevant code:

*View*: I bind the panel, so I can manipulate in the presenter
<g:DockLayoutPanel ui:field="panel" width="300px" height="300px">

<g:center>
<c:DataGrid ui:field="resultTable" />
</g:center>

</g:DockLayoutPanel>

*Presenter*:

          @Override
public void start(final AcceptsOneWidget panel, EventBus eventBus) {
[...]
panel.setWidget(vista.asWidget());
Scheduler.get().scheduleDeferred(new ScheduledCommand() {

@Override
public void execute() {
String width = DOM.getElementAttribute(vista.getPanel()
.getElement(), "width");
vista.getPanel().setWidth(width);
}
});
}

Thanks for your tips. Hope helps to another with same issue.

Juan.


2011/11/21 Juan Pablo Gardella <[email protected]>

> Hi folks,
>
> If I change height using  IE Developer Toolbar, the Datagrid is show. For
> example I change 300px to 301px and works. It seems that the tree DOM don't
> update or refresh correctly. It is possible to refresh tree DOM where is
> define the Datagrid via a button to test if this is the problem?
>
> Juan
>
>
> 2011/11/18 Thomas Broyer <[email protected]>
>
>> Does the Showcase work in IE7?
>> http://gwt.google.com/samples/Showcase/Showcase.html#!CwDataGrid
>> If it does, then it's not an issue with "DataGrid in IE7", but how you're
>> using it in your app.
>>
>> (also, note that using RootLayoutPanel is not enough if you don't have
>> RequiresResize/ProvidesResize widgets all the way down to your DataGrid: in
>> the sample code you posted, you have a VerticalPanel which breaks the
>> chain; but it's not the issue, as you explicitly set the width and height
>> of the DockLayoutPanel).
>>
>> I'm sorry I don't have time to download/build/test your sample project,
>> and don't have an IE7 at hand either.
>>
>> What I'd do:
>>  - try removing the DockLayoutPanel (setting explicit dimensions on the
>> DataGrid instead)
>>  - set breakpoints within DataGrid (onResize, setSize and similar)
>>  - add logs (window.alert, GWT.log, or java.util.logging) of the DataGrid
>> dimensions (and/or explore the DOM using the IE Developer Toolbar); beware
>> that layout panels handle resize in a Scheduler#scheduleFinally, so defer
>> your logging a bit; don't do it straight in your start() method.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/google-web-toolkit/-/cNX6AM2JCyMJ.
>>
>> 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.
>>
>
>

-- 
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.

Reply via email to