|
@@ -3643,6 +3643,12 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
|
defaultSize = CGSizeMake(130, 40);
|
|
|
}
|
|
|
defaultSize = ([page rotation] % 180 == 0) ? NSMakeSize(defaultSize.width, defaultSize.height) : NSMakeSize(defaultSize.height, defaultSize.width);
|
|
|
+ if (defaultSize.width/2.0 + pagePoint.x > page.bounds.size.width) {
|
|
|
+ pagePoint.x = page.bounds.size.width - defaultSize.width/2.0 - 10;
|
|
|
+ }
|
|
|
+ if (defaultSize.height/2.0 + pagePoint.y > page.bounds.size.height) {
|
|
|
+ pagePoint.y = page.bounds.size.height - defaultSize.height/2.0 - 10;
|
|
|
+ }
|
|
|
|
|
|
annotation = [self addFormAnnotationWithType:self.annotationType selection:nil page:page bounds:SKRectFromCenterAndSize(NSMakePoint(round(pagePoint.x), round(pagePoint.y)), defaultSize)];
|
|
|
[self showEditableFormAnnotationEditor:annotation];
|