Revision: 15222 http://sourceforge.net/p/skim-app/code/15222 Author: hofman Date: 2025-05-16 21:29:21 +0000 (Fri, 16 May 2025) Log Message: ----------- Only set content gravity to center without auto scale during live resize
Modified Paths: -------------- trunk/SKPresentationView.m Modified: trunk/SKPresentationView.m =================================================================== --- trunk/SKPresentationView.m 2025-05-16 21:26:35 UTC (rev 15221) +++ trunk/SKPresentationView.m 2025-05-16 21:29:21 UTC (rev 15222) @@ -436,7 +436,7 @@ - (void)viewWillStartLiveResize { [super viewWillStartLiveResize]; [self removePredrawnImageAtIndex:NSNotFound]; - if (pvFlags.autoScales) + if (pvFlags.autoScales == NO) [pageLayer setContentsGravity:kCAGravityCenter]; } @@ -444,7 +444,7 @@ [super viewDidEndLiveResize]; [self removePredrawnImageAtIndex:NSNotFound]; [self displayCurrentPage:nil]; - if (pvFlags.autoScales) + if (pvFlags.autoScales == NO) [pageLayer setContentsGravity:kCAGravityResizeAspectFill]; } @@ -543,7 +543,6 @@ - (void)setAutoScales:(BOOL)flag { if (flag != pvFlags.autoScales) { pvFlags.autoScales = flag; - [pageLayer setContentsGravity:flag ? kCAGravityResizeAspectFill : kCAGravityCenter]; [self removePredrawnImageAtIndex:NSNotFound]; [self displayCurrentPage:nil]; [[NSNotificationCenter defaultCenter] postNotificationName:SKPresentationViewAutoScalesChangedNotification 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