Revision: 14586
http://sourceforge.net/p/skim-app/code/14586
Author: hofman
Date: 2024-10-26 16:24:36 +0000 (Sat, 26 Oct 2024)
Log Message:
-----------
Resize Note annotation aligned to top-left
Modified Paths:
--------------
trunk/SKNPDFAnnotationNote_SKExtensions.m
Modified: trunk/SKNPDFAnnotationNote_SKExtensions.m
===================================================================
--- trunk/SKNPDFAnnotationNote_SKExtensions.m 2024-10-26 16:06:59 UTC (rev
14585)
+++ trunk/SKNPDFAnnotationNote_SKExtensions.m 2024-10-26 16:24:36 UTC (rev
14586)
@@ -102,8 +102,12 @@
[self setDrawsImage:NO];
if ([self iconType] != iconType)
[self setIconType:iconType];
- if (NSEqualSizes([self bounds].size, SKNPDFAnnotationNoteSize) == NO)
- [self setBounds:(NSRect){[self bounds].origin,
SKNPDFAnnotationNoteSize}];
+ if (NSEqualSizes([self bounds].size, SKNPDFAnnotationNoteSize) == NO) {
+ NSRect bounds = [self bounds];
+ bounds.origin.y = NSMaxY(bounds) - SKNPDFAnnotationNoteSize.height;
+ bounds.size = SKNPDFAnnotationNoteSize;
+ [self setBounds:bounds];
+ }
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit