/** If the DOM element containing the canvas is not visible, we first scroll it into view */ public void ensureViewVisible() { super.ensureViewVisible(); DOM.scrollIntoView(DOM.getElementById(targetElementId)); // containerDivId }