change pt to px (point is now pixel)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@144 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-18 13:18:47 +00:00
parent 90918dad48
commit a3941b683e

View File

@@ -525,7 +525,7 @@ Array.prototype.clear = function() {
* zIndex is NOT set * zIndex is NOT set
* *
* @param {String} id - HTML ID of new element, if empty something is made up * @param {String} id - HTML ID of new element, if empty something is made up
* @param {OpenLayers.Pixel} pt - x,y point if missing 0,0 is used * @param {OpenLayers.Pixel} px - x,y point if missing 0,0 is used
* @param {OpenLayers.Size} sz - size else size of parent is used * @param {OpenLayers.Size} sz - size else size of parent is used
* @param {String} overflow - behavior of clipped/overflow content * @param {String} overflow - behavior of clipped/overflow content
* @param {String} img - background image url * @param {String} img - background image url
@@ -534,12 +534,12 @@ Array.prototype.clear = function() {
* @returns A DOM Div created with the specified attributes. * @returns A DOM Div created with the specified attributes.
* @type DOMElement * @type DOMElement
*/ */
OpenLayers.Util.createDiv = function(id, pt, sz, overflow, img, position) { OpenLayers.Util.createDiv = function(id, px, sz, overflow, img, position) {
var x,y,w,h; var x,y,w,h;
if (pt) { if (px) {
x = pt.x; x = px.x;
y = pt.y; y = px.y;
} else { } else {
x = y = 0; x = y = 0;
} }