if (paneManager_.getConsole().getOffsetWidth() <= 0)
consoleWidth = lastMetrics_.getConsoleWidth();
// plots size (don't allow negative metrics)
WorkbenchTabPanel plotPanel = paneManager_.getOwnerTabPanel(Tab.Plots);
Size deckPanelSize = new Size(
plotPanel.getOffsetWidth(),
plotPanel.getOffsetHeight() - ModuleTabLayoutPanel.BAR_HEIGHT);
Size plotsSize = new Size(
Math.max(deckPanelSize.width, 0),
Math.max(deckPanelSize.height - Toolbar.DEFAULT_HEIGHT, 0));
WorkbenchMetrics metrics = WorkbenchMetrics.create(consoleWidth,
plotsSize.width,