Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: context scale for high resolution displays with foreignobjectren…
…dering (#1782)
  • Loading branch information
justinbmeyer authored and niklasvh committed Apr 7, 2019
1 parent 49f87fb commit 7027900
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/ForeignObjectRenderer.js
Expand Up @@ -16,6 +16,7 @@ export default class ForeignObjectRenderer {
this.canvas.height = Math.floor(options.height) * options.scale;
this.canvas.style.width = `${options.width}px`;
this.canvas.style.height = `${options.height}px`;
this.ctx.scale(options.scale, options.scale);

options.logger.log(
`ForeignObject renderer initialized (${options.width}x${options.height} at ${options.x},${options.y}) with scale ${options.scale}`
Expand Down

0 comments on commit 7027900

Please sign in to comment.