flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject 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
Date Wed, 22 Feb 2017 11:33:08 GMT
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 <harbs@in-tools.com>
Authored: Wed Feb 22 13:33:03 2017 +0200
Committer: Harbs <harbs@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;
 


Mime
View raw message