You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2013/08/24 00:10:08 UTC
[4/5] git commit: Fix the positioning of the DateField's popup
Fix the positioning of the DateField's popup
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/b3259538
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/b3259538
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/b3259538
Branch: refs/heads/master
Commit: b3259538792cb8ce365c16fae0df0050800c4183
Parents: 289a2d2
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Fri Aug 23 15:09:35 2013 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Fri Aug 23 15:09:35 2013 -0700
----------------------------------------------------------------------
.../META-INF/modules/t5/core/datefield.coffee | 4 ++--
.../META-INF/assets/tapestry5/tapestry.css | 17 ++++++++++-------
2 files changed, 12 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/b3259538/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/datefield.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/datefield.coffee b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/datefield.coffee
index 84b1ac7..a1b1bfd 100644
--- a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/datefield.coffee
+++ b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/datefield.coffee
@@ -114,8 +114,8 @@ define ["./dom", "./events", "./messages", "./ajax", "underscore", "./fields"],
createPopup: ->
@datePicker = new DatePicker()
@datePicker.setFirstWeekDay datePickerFirstDay
- @popup = dom.create().append @datePicker.create()
- @container.append @popup
+ @popup = dom.create("div", { class: "datefield-popup"}).append @datePicker.create()
+ @container.insertAfter @popup
@datePicker.onselect = _.bind @onSelect, this
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/b3259538/tapestry-core/src/main/resources/META-INF/assets/tapestry5/tapestry.css
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/resources/META-INF/assets/tapestry5/tapestry.css b/tapestry-core/src/main/resources/META-INF/assets/tapestry5/tapestry.css
index e0486b5..373beae 100644
--- a/tapestry-core/src/main/resources/META-INF/assets/tapestry5/tapestry.css
+++ b/tapestry-core/src/main/resources/META-INF/assets/tapestry5/tapestry.css
@@ -1,9 +1,3 @@
-div.t-datefield-popup {
- position: absolute;
- z-index: 1000;
- margin-top: 2px;
-}
-
/* Applied to an input element to provide feedback that something is waiting on an Ajax request:
examples include server-side validation, or autocompletion. An Ajax "throbber" is displayed
on the right side of the field. */
@@ -26,4 +20,13 @@ th[data-grid-column-sort=ascending] a {
th[data-grid-column-sort=descending] a {
background-image: url(../core/sort-desc.png);
-}
\ No newline at end of file
+}
+
+/* Some support for the built-in DateField component. */
+
+div.datefield-popup {
+ position: absolute;
+ z-index: 1000;
+ margin-top: 2px;
+}
+