inner.addStyleName("inner");\r
\r
fetchVersions();\r
- \r
- outer.add(inner);\r
+\r
+ outer.add(inner);\r
\r
// Create the 'OK' button, along with a listener that hides the dialog\r
// when the button is clicked.\r
setWidget(outer);\r
}\r
\r
+ void doCenter() {\r
+ super.center();\r
+ }\r
+ \r
+ @Override\r
+ public void center() {\r
+ fetchVersions();\r
+ }\r
+\r
protected void fetchVersions() {\r
String path = file.getUri() + "?format=json&version=list";\r
GetRequest<FileVersions> getVersions = new GetRequest<FileVersions>(FileVersions.class, app.getApiPath(), file.getOwner(), path) {\r
@Override\r
public void onSuccess(FileVersions _result) {\r
inner.add(createVersionPanel(_result.getVersions()));\r
+ doCenter();\r
}\r
\r
@Override\r