Revision: 12866 http://sourceforge.net/p/skim-app/code/12866 Author: hofman Date: 2022-04-28 14:23:32 +0000 (Thu, 28 Apr 2022) Log Message: ----------- calculate contentSize only once
Modified Paths: -------------- trunk/SKTopBarView.m Modified: trunk/SKTopBarView.m =================================================================== --- trunk/SKTopBarView.m 2022-04-27 21:38:17 UTC (rev 12865) +++ trunk/SKTopBarView.m 2022-04-28 14:23:32 UTC (rev 12866) @@ -129,9 +129,11 @@ } - (void)resizeSubviewsWithOldSize:(NSSize)size { - [backgroundView setFrame:[self contentRect]]; - [reflectionView setFrame:[self contentRect]]; - [contentView setFrame:[self contentRect]]; + [super resizeSubviewsWithOldSize:size]; + NSRect rect = [self contentRect]; + [backgroundView setFrame:rect]; + [reflectionView setFrame:rect]; + [contentView setFrame:rect]; } - (void)addSubview:(NSView *)aView { @@ -225,9 +227,10 @@ - (void)setHasSeparator:(BOOL)flag { if (flag != hasSeparator) { hasSeparator = flag; - [backgroundView setFrame:[self contentRect]]; - [reflectionView setFrame:[self contentRect]]; - [contentView setFrame:[self contentRect]]; + NSRect rect = [self contentRect]; + [backgroundView setFrame:rect]; + [reflectionView setFrame:rect]; + [contentView setFrame:rect]; [self setNeedsDisplay:YES]; } } 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