mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
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.
This commit is contained in:
+2
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user