added ND comments, removed unused arguments from getBoxCharacteristics. Non-functional change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8444 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -102,7 +102,7 @@ OpenLayers.Handler.Box = OpenLayers.Class(OpenLayers.Handler, {
|
||||
|
||||
// depending on the box model, modify width and height to take borders
|
||||
// of the box into account
|
||||
var box = this.getBoxCharacteristics(deltaX, deltaY);
|
||||
var box = this.getBoxCharacteristics();
|
||||
if (box.newBoxModel) {
|
||||
if (xy.x > startX) {
|
||||
this.zoomBox.style.width =
|
||||
@@ -173,7 +173,17 @@ OpenLayers.Handler.Box = OpenLayers.Class(OpenLayers.Handler, {
|
||||
}
|
||||
},
|
||||
|
||||
getBoxCharacteristics: function(dx, dy) {
|
||||
/**
|
||||
* Method: getCharacteristics
|
||||
* Determines offset and box model for a box.
|
||||
*
|
||||
* Returns:
|
||||
* {Object} a hash with the following properties:
|
||||
* - xOffset - Corner offset in x-direction
|
||||
* - yOffset - Corner offset in y-direction
|
||||
* - newBoxModel - true for all browsers except IE in quirks mode
|
||||
*/
|
||||
getBoxCharacteristics: function() {
|
||||
if (!this.boxCharacteristics) {
|
||||
var xOffset = parseInt(OpenLayers.Element.getStyle(this.zoomBox,
|
||||
"border-left-width")) + parseInt(OpenLayers.Element.getStyle(
|
||||
|
||||
Reference in New Issue
Block a user