Revision: 15007
          http://sourceforge.net/p/skim-app/code/15007
Author:   hofman
Date:     2025-03-23 09:44:53 +0000 (Sun, 23 Mar 2025)
Log Message:
-----------
Always invalidate intrinsic content size when updating color swatch subview 
layout

Modified Paths:
--------------
    trunk/SKColorSwatch.m

Modified: trunk/SKColorSwatch.m
===================================================================
--- trunk/SKColorSwatch.m       2025-03-22 17:56:42 UTC (rev 15006)
+++ trunk/SKColorSwatch.m       2025-03-23 09:44:53 UTC (rev 15007)
@@ -281,6 +281,7 @@
     for (i = 0; i < iMax; i++)
         [[itemViews objectAtIndex:i] setFrame:[self frameForItemViewAtIndex:i 
collapsedIndex:-1]];
     [backgroundView setWidth:[self fitWidth]];
+    [self invalidateIntrinsicContentSize];
 }
 
 #pragma mark Drawing
@@ -510,7 +511,6 @@
         [itemViews removeObjectAtIndex:iMax];
     }
     [self updateSubviewLayout];
-    [self invalidateIntrinsicContentSize];
     [[NSNotificationCenter defaultCenter] 
postNotificationName:SKColorSwatchColorsChangedNotification object:self];
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to