You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2017/02/22 11:33:08 UTC
git commit: [flex-asjs] [refs/heads/develop] - Removed arbitrary
hard-coded width for slider. Changed slider wrapper to div instead of p to
remove the default bottom padding
Repository: flex-asjs
Updated Branches:
refs/heads/develop 7ba69d4ec -> 302f57ea0
Removed arbitrary hard-coded width for slider.
Changed slider wrapper to div instead of p to remove the default bottom padding
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/302f57ea
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/302f57ea
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/302f57ea
Branch: refs/heads/develop
Commit: 302f57ea0307e23936f290ada650d340256ae0f5
Parents: 7ba69d4
Author: Harbs <ha...@in-tools.com>
Authored: Wed Feb 22 13:33:03 2017 +0200
Committer: Harbs <ha...@in-tools.com>
Committed: Wed Feb 22 13:33:03 2017 +0200
----------------------------------------------------------------------
.../src/main/flex/org/apache/flex/mdl/Slider.as | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/302f57ea/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Slider.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Slider.as b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Slider.as
index 768a202..68f1cb1 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Slider.as
+++ b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Slider.as
@@ -191,18 +191,17 @@ package org.apache.flex.mdl
COMPILE::JS
override protected function createElement():WrappedHTMLElement
{
- var p:HTMLElement = document.createElement('p') as HTMLElement;
- p.style.width = '300px';
+ var div:HTMLElement = document.createElement('div') as HTMLElement;
input = document.createElement('input') as HTMLInputElement;
input.type = "range";
input.className = "mdl-slider mdl-js-slider";
- p.appendChild(input);
+ div.appendChild(input);
element = input as WrappedHTMLElement;
- positioner = p as WrappedHTMLElement;
+ positioner = div as WrappedHTMLElement;
(input as WrappedHTMLElement).flexjs_wrapper = this;
element.flexjs_wrapper = this;