mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-16 13:31:18 +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:
1 parent
410ad0dc09
commit
cfbef141d8
1 file changed
+2
-1
+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