mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
update CHANGELOG with new version
This commit is contained in:
@@ -1005,8 +1005,10 @@ export class Stage extends Container<BaseLayer> {
|
||||
return {
|
||||
top: rect.top,
|
||||
left: rect.left,
|
||||
scaleX: rect.width / this.content.clientWidth,
|
||||
scaleY: rect.height / this.content.clientHeight,
|
||||
// sometimes clientWidth can be equals to 0
|
||||
// i saw it in react-konva test, looks like it is because of hidden testing element
|
||||
scaleX: rect.width / this.content.clientWidth || 1,
|
||||
scaleY: rect.height / this.content.clientHeight || 1,
|
||||
};
|
||||
}
|
||||
_buildDOM() {
|
||||
|
Reference in New Issue
Block a user