don't need these anymore
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/81082b07 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/81082b07 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/81082b07 Branch: refs/heads/develop Commit: 81082b071a44166d5b933da1e6858c7b48b615d5 Parents: 43b4446 Author: Alex Harui <[email protected]> Authored: Thu Sep 3 11:51:32 2015 -0700 Committer: Alex Harui <[email protected]> Committed: Thu Sep 3 15:23:39 2015 -0700 ---------------------------------------------------------------------- .../html/beads/layouts/BasicScrollingLayout.js | 94 -------------------- .../beads/layouts/VerticalScrollingLayout.js | 59 ------------ 2 files changed, 153 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/81082b07/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/BasicScrollingLayout.js ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/BasicScrollingLayout.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/BasicScrollingLayout.js deleted file mode 100644 index d18607c..0000000 --- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/BasicScrollingLayout.js +++ /dev/null @@ -1,94 +0,0 @@ -/** - * Licensed under the Apache License, Version 2.0 (the 'License'); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -goog.provide('org.apache.flex.html.beads.layouts.BasicScrollingLayout'); - -goog.require('org.apache.flex.core.IBeadLayout'); - - - -/** - * @constructor - * @implements {org.apache.flex.core.IBeadLayout} - */ -org.apache.flex.html.beads.layouts.BasicScrollingLayout = - function() { - this.strand_ = null; - this.className = 'BasicScrollingLayout'; -}; - - -/** - * Metadata - * - * @type {Object.<string, Array.<Object>>} - */ -org.apache.flex.html.beads.layouts.BasicScrollingLayout.prototype.FLEXJS_CLASS_INFO = - { names: [{ name: 'BasicScrollingLayout', - qName: 'org.apache.flex.html.beads.layouts.BasicScrollingLayout'}], - interfaces: [org.apache.flex.core.IBeadLayout] }; - - -Object.defineProperties(org.apache.flex.html.beads.layouts.BasicScrollingLayout.prototype, { - /** @export */ - strand: { - /** @this {org.apache.flex.html.beads.layouts.BasicScrollingLayout} */ - set: function(value) { - if (this.strand_ !== value) { - this.strand_ = value; - } - } - } -}); - - -/** - */ -org.apache.flex.html.beads.layouts.BasicScrollingLayout. - prototype.layout = function() { - var i, n, h, w; - - var viewBead = this.strand_.getBeadByType(org.apache.flex.core.ILayoutParent); - var contentView = viewBead.contentView; - contentView.element.style.overflow = 'auto'; - w = contentView.width; - h = contentView.height; - n = contentView.numElements; - for (i = 0; i < n; i++) { - var child = contentView.getElementAt(i); - child.positioner.internalDisplay = 'block'; - var left = org.apache.flex.core.ValuesManager.valuesImpl.getValue(child, 'left'); - var right = org.apache.flex.core.ValuesManager.valuesImpl.getValue(child, 'right'); - var top = org.apache.flex.core.ValuesManager.valuesImpl.getValue(child, 'top'); - var bottom = org.apache.flex.core.ValuesManager.valuesImpl.getValue(child, 'bottom'); - - if (!isNaN(left)) { - child.positioner.style.position = 'absolute'; - child.positioner.style.left = left.toString() + 'px'; - } - if (!isNaN(top)) { - child.positioner.style.position = 'absolute'; - child.positioner.style.top = top.toString() + 'px'; - } - if (!isNaN(right)) { - child.positioner.style.position = 'absolute'; - child.positioner.style.right = right.toString() + 'px'; - } - if (!isNaN(bottom)) { - child.positioner.style.position = 'absolute'; - child.positioner.style.bottom = bottom.toString() + 'px'; - } - child.dispatchEvent('sizeChanged'); - } -}; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/81082b07/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/VerticalScrollingLayout.js ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/VerticalScrollingLayout.js b/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/VerticalScrollingLayout.js deleted file mode 100644 index f4b5dd2..0000000 --- a/frameworks/projects/HTML/js/src/org/apache/flex/html/beads/layouts/VerticalScrollingLayout.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Licensed under the Apache License, Version 2.0 (the 'License'); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -goog.provide('org.apache.flex.html.beads.layouts.VerticalScrollingLayout'); - -goog.require('org.apache.flex.core.IBeadLayout'); - - - -/** - * @constructor - * @implements {org.apache.flex.core.IBeadLayout} - */ -org.apache.flex.html.beads.layouts.VerticalScrollingLayout = function() { - this.strand_ = null; - this.className = 'VerticalScrollingLayout'; -}; - - -/** - */ -org.apache.flex.html.beads.layouts.VerticalScrollingLayout. - prototype.layout = function() { -}; - - -/** - * Metadata - * - * @type {Object.<string, Array.<Object>>} - */ -org.apache.flex.html.beads.layouts.VerticalScrollingLayout.prototype.FLEXJS_CLASS_INFO = - { names: [{ name: 'VerticalScrollingLayout', - qName: 'org.apache.flex.html.beads.layouts.VerticalScrollingLayout' }], - interfaces: [org.apache.flex.core.IBeadLayout] }; - - -Object.defineProperties(org.apache.flex.html.beads.layouts.VerticalScrollingLayout.prototype, { - /** @export */ - strand: { - /** @this {org.apache.flex.html.beads.layouts.VerticalScrollingLayout} */ - set: function(value) { - if (this.strand_ !== value) { - this.strand_ = value; - } - } - } -});
