You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2017/04/18 06:17:26 UTC
[02/50] [abbrv] git commit: [flex-asjs] [refs/heads/dual] - Adjust
position of the DateField popup.
Adjust position of the DateField popup.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/efc48479
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/efc48479
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/efc48479
Branch: refs/heads/dual
Commit: efc48479890edaa6b30a739e31ba7b4a2c26d24e
Parents: dbf3bad
Author: Peter Ent <pe...@apache.org>
Authored: Fri Mar 31 14:39:43 2017 -0400
Committer: Peter Ent <pe...@apache.org>
Committed: Fri Mar 31 14:39:43 2017 -0400
----------------------------------------------------------------------
.../flex/org/apache/flex/html/beads/DateFieldView.as | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/efc48479/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DateFieldView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DateFieldView.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DateFieldView.as
index 0e7a27f..6cd9478 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DateFieldView.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/DateFieldView.as
@@ -110,8 +110,11 @@ package org.apache.flex.html.beads
_button = new TextButton();
_button.text = "M";
UIBase(_strand).addElement(_button);
- _button.x = _textInput.width;
- _button.y = _textInput.y;
+
+ COMPILE::SWF {
+ _button.x = _textInput.width;
+ _button.y = _textInput.y;
+ }
IEventDispatcher(_strand).addEventListener("beadsAdded",handleBeadsAdded);
}
@@ -175,11 +178,14 @@ package org.apache.flex.html.beads
_popUp.selectedDate = model.selectedDate;
var host:IPopUpHost = UIUtils.findPopUpHost(UIBase(_strand));
- var point:Point = new Point(_button.x, _button.y+_button.height);
+ var point:Point = new Point(_textInput.width, _button.height);
var p2:Point = PointUtils.localToGlobal(point, _strand);
var p3:Point = PointUtils.globalToLocal(p2, host);
_popUp.x = p3.x;
_popUp.y = p3.y;
+ COMPILE::JS {
+ _popUp.element.style.position = "absolute";
+ }
host.addElement(_popUp);
}