From cfbef141d8f8b60907b3690a17154a81eb793bd1 Mon Sep 17 00:00:00 2001 From: cacaodev Date: Mon, 7 Nov 2016 17:52:34 +0100 Subject: [PATCH] CPAnimationContext: Inhibit DOM updates during size animation Previously, during frame updates, we were writing the css values we just read before. Canvas sizing is preserved as it is needed when the view has custom drawing. --- AppKit/CPView.j | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AppKit/CPView.j b/AppKit/CPView.j index f0f598ab3..f28ff5f4b 100644 --- a/AppKit/CPView.j +++ b/AppKit/CPView.j @@ -1278,7 +1278,8 @@ var CPViewHighDPIDrawingEnabled = YES; #if PLATFORM(DOM) var scale = [self scaleSize]; - CPDOMDisplayServerSetStyleSize(_DOMElement, aSize.width * 1 / scale.width, aSize.height * 1 / scale.height); + if (!_inhibitDOMUpdates) + CPDOMDisplayServerSetStyleSize(_DOMElement, aSize.width * 1 / scale.width, aSize.height * 1 / scale.height); if (_DOMContentsElement) {