Explicitly use gValign class rather than first child.

This commit is contained in:
Chad Kieffer
2009-08-09 11:40:39 -06:00
parent 2f4c4a3f70
commit de00a4ac39

View File

@@ -13,7 +13,7 @@
container = 'div';
}
$(this).html("<" + container + " class=\"gValign\">" + $(this).html() + "</" + container + ">");
var el = $(this).children(container + ":first");
var el = $(this).children(container + ".gValign");
var elh = $(el).height();
var ph = $(this).height();
var nh = (ph - elh) / 2;