|
@@ -42,6 +42,7 @@
|
|
|
#import "CPDFChoiceWidgetAnnotation+PDFListView.h"
|
|
|
#import "CPDFLineAnnotation+PDFListView.h"
|
|
|
#import "NSPopover+PDFListView.h"
|
|
|
+#import "NSGeometry_SKExtensions.h"
|
|
|
|
|
|
NSNotificationName const CPDFListViewSelectionChangedNotification = @"CPDFListViewSelectionChangedNotification";
|
|
|
|
|
@@ -305,6 +306,9 @@ NSNotificationName const CPDFListViewAnnotationsAttributeHasChangeNotification =
|
|
|
|
|
|
if(annotationType == CAnnotationTypeAnchored)
|
|
|
bounds = CGRectMake(bounds.origin.x, bounds.origin.y, size.width, size.height);
|
|
|
+ if (annotationType == CAnnotationTypeCircle || annotationType == CAnnotationTypeSquare || annotationType == CAnnotationTypeLine || annotationType == CAnnotationTypeArrow || annotationType == CAnnotationTypeAnchored) {
|
|
|
+ bounds = KMConstrainRect(bounds, [page boundsForBox:[self displayBox]]);
|
|
|
+ }
|
|
|
|
|
|
if (isInitial)
|
|
|
bounds = annotationType == CAnnotationTypeAnchored ? CPDFListViewRectFromCenterAndSize(bounds.origin, size) : CPDFListViewRectFromCenterAndSquareSize(bounds.origin, MIN_NOTE_SIZE);
|