Revision: 15221 http://sourceforge.net/p/skim-app/code/15221 Author: hofman Date: 2025-05-16 21:26:35 +0000 (Fri, 16 May 2025) Log Message: ----------- Only set content gravity to center on auto scale during live resize
Modified Paths: -------------- trunk/SKPresentationView.m Modified: trunk/SKPresentationView.m =================================================================== --- trunk/SKPresentationView.m 2025-05-16 21:20:33 UTC (rev 15220) +++ trunk/SKPresentationView.m 2025-05-16 21:26:35 UTC (rev 15221) @@ -436,6 +436,8 @@ - (void)viewWillStartLiveResize { [super viewWillStartLiveResize]; [self removePredrawnImageAtIndex:NSNotFound]; + if (pvFlags.autoScales) + [pageLayer setContentsGravity:kCAGravityCenter]; } - (void)viewDidEndLiveResize { @@ -442,6 +444,8 @@ [super viewDidEndLiveResize]; [self removePredrawnImageAtIndex:NSNotFound]; [self displayCurrentPage:nil]; + if (pvFlags.autoScales) + [pageLayer setContentsGravity:kCAGravityResizeAspectFill]; } - (void)updatedAnnotationOnPage:(PDFPage *)aPage { 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