UNPKG

@qooxdoo/framework

Version:

The JS Framework for Coders

53 lines (42 loc) 1.26 kB
/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2004-2008 1&1 Internet AG, Germany, http://www.1und1.de License: MIT: https://opensource.org/licenses/MIT See the LICENSE file in the project's top-level directory for details. Authors: * Fabian Jakobs (fjakobs) ************************************************************************ */ /** * Clipping area for the table header and table pane. */ qx.Class.define("qx.ui.table.pane.Clipper", { extend : qx.ui.container.Composite, construct : function() { this.base(arguments, new qx.ui.layout.Grow()); this.setMinWidth(0); }, members : { /** * Scrolls the element's content to the given left coordinate * * @param value {Integer} The vertical position to scroll to. */ scrollToX : function(value) { this.getContentElement().scrollToX(value, false); }, /** * Scrolls the element's content to the given top coordinate * * @param value {Integer} The horizontal position to scroll to. */ scrollToY : function(value) { this.getContentElement().scrollToY(value, true); } } });