|
|
|
@ -87,7 +87,7 @@ public class ReportGenerator implements EntryPoint {
|
|
|
|
|
public void onModuleLoad() {
|
|
|
|
|
singleton = this;
|
|
|
|
|
presenter = new Presenter();
|
|
|
|
|
mainLayout.setWidth("100%");
|
|
|
|
|
mainLayout.setWidth("95%");
|
|
|
|
|
mainLayout.setHeight("100%");
|
|
|
|
|
//
|
|
|
|
|
workSpacePanel = new WorkspacePanel(presenter);
|
|
|
|
@ -132,30 +132,30 @@ public class ReportGenerator implements EntryPoint {
|
|
|
|
|
// Add image and button to the RootPanel
|
|
|
|
|
RootPanel.get("ReportGeneratorDIV").add(mainLayout);
|
|
|
|
|
|
|
|
|
|
int scrollerWidth = Window.getClientWidth()- TEMPLATE_LEFT - 30;
|
|
|
|
|
bottomScrollerPanel.setPixelSize(scrollerWidth, 1000);
|
|
|
|
|
|
|
|
|
|
if ( Window.getClientWidth() < 1070 ) {
|
|
|
|
|
int scrollerWidth2 = Window.getClientWidth()- TEMPLATE_LEFT;
|
|
|
|
|
bottomScrollerPanel.setPixelSize(scrollerWidth2, 1000);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Window.addResizeHandler(new ResizeHandler() {
|
|
|
|
|
public void onResize(ResizeEvent event) {
|
|
|
|
|
int scrollerHeight = event.getHeight() - bottomScrollerPanel.getAbsoluteTop();
|
|
|
|
|
if (scrollerHeight < toolBoxPanel.getTreePanelHeight())
|
|
|
|
|
scrollerHeight = toolBoxPanel.getTreePanelHeight();
|
|
|
|
|
int scrollerWidth = Window.getClientWidth()- TEMPLATE_LEFT - 30;
|
|
|
|
|
bottomScrollerPanel.setPixelSize(scrollerWidth , 1000);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( Window.getClientWidth() < 1060 ) {
|
|
|
|
|
int scrollerWidth2 = Window.getClientWidth()- TEMPLATE_LEFT;
|
|
|
|
|
bottomScrollerPanel.setPixelSize(scrollerWidth2, 1000);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
// int scrollerWidth = Window.getClientWidth()- TEMPLATE_LEFT - 30;
|
|
|
|
|
// bottomScrollerPanel.setPixelSize(scrollerWidth, 1000);
|
|
|
|
|
//
|
|
|
|
|
// if ( Window.getClientWidth() < 1070 ) {
|
|
|
|
|
// int scrollerWidth2 = Window.getClientWidth()- TEMPLATE_LEFT;
|
|
|
|
|
// bottomScrollerPanel.setPixelSize(scrollerWidth2, 1000);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// Window.addResizeHandler(new ResizeHandler() {
|
|
|
|
|
// public void onResize(ResizeEvent event) {
|
|
|
|
|
// int scrollerHeight = event.getHeight() - bottomScrollerPanel.getAbsoluteTop();
|
|
|
|
|
// if (scrollerHeight < toolBoxPanel.getTreePanelHeight())
|
|
|
|
|
// scrollerHeight = toolBoxPanel.getTreePanelHeight();
|
|
|
|
|
// int scrollerWidth = Window.getClientWidth()- TEMPLATE_LEFT - 30;
|
|
|
|
|
// bottomScrollerPanel.setPixelSize(scrollerWidth , 1000);
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// if ( Window.getClientWidth() < 1060 ) {
|
|
|
|
|
// int scrollerWidth2 = Window.getClientWidth()- TEMPLATE_LEFT;
|
|
|
|
|
// bottomScrollerPanel.setPixelSize(scrollerWidth2, 1000);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// });
|
|
|
|
|
//presenter.showExportPanel("", "", null, "");
|
|
|
|
|
//showGuidedTour() ;
|
|
|
|
|
|
|
|
|
|