Commit e8f1de3b authored by Neil Fraser's avatar Neil Fraser

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

parent 84838a67
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment