12G0NEe1Aiy7RDZZu2VGle changeset

Changeset383039393034 (b)
ParentNone (a)
ab
0+jQuery.fn.valign = function() {
0+                $(this)
0+                        .wrapInner('<div class="valign-box"></div>')
0+                        .css("position", "relative");
0+
0+                xH = $(this).children('.valign-box').height();
0+                $(this).children('.valign-box')
0+                        .css({
0+                                "position"              : "absolute",
0+                                "height"                : xH,
0+                                "top"                   : "50%",
0+                                "margin-top"    : 0-(xH/2)
0+                        });
0+        };
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- Revision None
+++ Revision 383039393034
@@ -0,0 +1,14 @@
+jQuery.fn.valign = function() {
+ $(this)
+ .wrapInner('<div class="valign-box"></div>')
+ .css("position", "relative");
+
+ xH = $(this).children('.valign-box').height();
+ $(this).children('.valign-box')
+ .css({
+ "position" : "absolute",
+ "height" : xH,
+ "top" : "50%",
+ "margin-top" : 0-(xH/2)
+ });
+ };