use of org.rstudio.studio.client.common.compile.CompileOutputBuffer in project rstudio by rstudio.
the class CompilePdfProgressDialog method createDisplayWidget.
@Override
protected Widget createDisplayWidget(Object param) {
container_ = new SimplePanel();
int maxHeight = Window.getClientHeight() - 150;
int height = Math.min(500, maxHeight);
container_.getElement().getStyle().setHeight(height, Unit.PX);
output_ = new CompileOutputBuffer();
container_.setWidget(output_);
return container_;
}
use of org.rstudio.studio.client.common.compile.CompileOutputBuffer in project rstudio by rstudio.
the class HTMLPreviewProgressDialog method createDisplayWidget.
@Override
protected Widget createDisplayWidget(Object param) {
SimplePanel panel = new SimplePanel();
int height = Window.getClientHeight() - 150;
int maxHeight = (Integer) param;
if (maxHeight != -1)
height = Math.min(maxHeight, height);
panel.getElement().getStyle().setHeight(height, Unit.PX);
output_ = new CompileOutputBuffer();
panel.setWidget(output_);
return panel;
}
Aggregations