From 83bceaa867a2d26cc441c115c7ea4da51f0b54f5 Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Sat, 23 May 2009 13:04:29 -0700 Subject: [PATCH] Fix for HUD button misrendered in Aristo theme gallery until pressed for first time. Closes #141. Reviewed by me. --- AppKit/CPView.j | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AppKit/CPView.j b/AppKit/CPView.j index 4dc5dc61d..61cba8ec6 100644 --- a/AppKit/CPView.j +++ b/AppKit/CPView.j @@ -2107,6 +2107,9 @@ setBoundsOrigin: for (var attributeName in _themeAttributes) if (_themeAttributes.hasOwnProperty(attributeName)) [_themeAttributes[attributeName] setParentAttribute:[theme _attributeWithName:attributeName forClass:themeClass]]; + + [self setNeedsLayout]; + [self setNeedsDisplay:YES]; } - (CPDictionary)_themeAttributeDictionary