466200308787f6369797d65cec3597a92e7e6c39Matt SweeneyY.mix(Y.Node.ATTRS, {
31acd99497fcc9fc72f15c5553fe356d64fb9d03Matt Sweeney offsetHeight: {
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney setter: function(h) {
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney Y.DOM.setHeight(this._node, h);
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney return h;
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney },
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney getter: function() {
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney return this._node.offsetHeight;
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney }
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney },
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney
31acd99497fcc9fc72f15c5553fe356d64fb9d03Matt Sweeney offsetWidth: {
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney setter: function(w) {
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney Y.DOM.setWidth(this._node, w);
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney return w;
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney },
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney getter: function() {
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney return this._node.offsetWidth;
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney }
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney }
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney});
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney
466200308787f6369797d65cec3597a92e7e6c39Matt SweeneyY.mix(Y.Node.prototype, {
ea6a6ecbd640281f7087653a8b6af05bd38cfcceMatt Sweeney sizeTo: function(w, h) {
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney var node;
ea6a6ecbd640281f7087653a8b6af05bd38cfcceMatt Sweeney if (arguments.length < 2) {
ea6a6ecbd640281f7087653a8b6af05bd38cfcceMatt Sweeney node = Y.one(w);
ea6a6ecbd640281f7087653a8b6af05bd38cfcceMatt Sweeney w = node.get('offsetWidth');
ea6a6ecbd640281f7087653a8b6af05bd38cfcceMatt Sweeney h = node.get('offsetHeight');
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney }
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney this.setAttrs({
ea6a6ecbd640281f7087653a8b6af05bd38cfcceMatt Sweeney offsetWidth: w,
ea6a6ecbd640281f7087653a8b6af05bd38cfcceMatt Sweeney offsetHeight: h
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney });
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney }
466200308787f6369797d65cec3597a92e7e6c39Matt Sweeney});