Bounds.fromSize: size can be a simple object, update doc.

This commit is contained in:
fredj
2012-02-14 14:32:15 +01:00
parent d387add3e2
commit 692fe2dd12

View File

@@ -716,7 +716,8 @@ OpenLayers.Bounds.fromArray = function(bbox, reverseAxisOrder) {
* from a size
*
* Parameters:
* size - {<OpenLayers.Size>}
* size - {<OpenLayers.Size>|Object} OpenLayers.Size or an object with
* a 'w' and 'h' properties.
*
* Returns:
* {<OpenLayers.Bounds>} New bounds object built from the passed-in size.