make NS look better in JS
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/72d08ed9 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/72d08ed9 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/72d08ed9 Branch: refs/heads/develop Commit: 72d08ed91a734bf4472949b2bfbe9d4ceda790df Parents: 637fdc3 Author: Alex Harui <aha...@apache.org> Authored: Mon Jan 12 10:48:27 2015 -0800 Committer: Alex Harui <aha...@apache.org> Committed: Mon Jan 12 10:48:27 2015 -0800 ---------------------------------------------------------------------- .../src/org/apache/flex/html/NumericStepper.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72d08ed9/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js b/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js index 8fd42cf..4323042 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/html/NumericStepper.js @@ -55,9 +55,25 @@ org.apache.flex.html.NumericStepper.prototype.createElement = this.input = new org.apache.flex.html.TextInput(); this.addElement(this.input); this.input.positioner.style.display = 'inline-block'; + this.input.positioner.style.width = '100px'; this.spinner = new org.apache.flex.html.Spinner(); + this.spinner.positioner.style.display = 'inline-block'; + this.spinner.positioner.style.height = '24px'; + this.spinner.positioner.style.marginLeft = '-2px'; + this.spinner.positioner.style.marginTop = '2px'; this.addElement(this.spinner); + /* TODO: ajh move to view and css */ + this.spinner.incrementButton.positioner.style.display = 'block'; + this.spinner.incrementButton.positioner.style.marginBottom = '-1px'; + this.spinner.incrementButton.positioner.style.paddingTop = '1px'; + this.spinner.incrementButton.positioner.style.paddingBottom = '1px'; + this.spinner.incrementButton.positioner.style.fontSize = '6px'; + this.spinner.decrementButton.positioner.style.marginTop = '0px'; + this.spinner.decrementButton.positioner.style.display = 'block'; + this.spinner.decrementButton.positioner.style.paddingTop = '1px'; + this.spinner.decrementButton.positioner.style.paddingBottom = '1px'; + this.spinner.decrementButton.positioner.style.fontSize = '6px'; this.spinner.positioner.style.display = 'inline-block'; goog.events.listen(this.spinner, 'valueChange', goog.bind(this.spinnerChange, this)); @@ -141,6 +157,7 @@ org.apache.flex.html.NumericStepper.prototype.get_value = org.apache.flex.html.NumericStepper.prototype.set_value = function(newValue) { this.model.set_value(newValue); + this.spinner.set_value(newValue); };