Fix bottom-right workspace metrics when not at 100% zoom.

This commit is contained in:
Neil Fraser
2015-08-20 14:09:14 -07:00
parent 84838a67f3
commit e8f1de3bdf

View File

@@ -490,8 +490,8 @@ Blockly.getMainWorkspaceMetrics_ = function() {
return null;
}
// Fix scale.
var contentWidth = blockBox.width;
var contentHeight = blockBox.height;
var contentWidth = blockBox.width * this.scale;
var contentHeight = blockBox.height * this.scale;
var contentX = blockBox.x * this.scale;
var contentY = blockBox.y * this.scale;
if (this.scrollbar) {