OSDN Git Service

プレビューの位置の計算で余分な計算をしていたのを修正
authorh677 <h677>
Sun, 27 Aug 2006 10:18:37 +0000 (10:18 +0000)
committerh677 <h677>
Sun, 27 Aug 2006 10:18:37 +0000 (10:18 +0000)
Preview.pas

index 98cfbce..b3b4553 100644 (file)
@@ -152,21 +152,21 @@ begin
     // \8fo\82µ\88Ê\92u\82É\82æ\82é\95â\90³
        case GikoSys.Setting.PopupPosition of
                gppRightTop:            OffsetRect(Result,
-            Point.x - (Result.Right - Result.Left) - 15, Point.y - (Result.Bottom - Result.Top) -      15);
+            Point.x - WindowWidth - 15, Point.y - WindowHeight -       15);
                gppRight:                       OffsetRect(Result,
-            Point.x - (Result.Right - Result.Left) - 15, Point.y - ((Result.Bottom - Result.Top) div 2));
+            Point.x - WindowWidth - 15, Point.y - (WindowHeight div 2));
                gppRightBottom: OffsetRect(Result,
-            Point.x - (Result.Right - Result.Left) - 15, Point.y + 15);
+            Point.x - WindowWidth - 15, Point.y + 15);
                gppTop:                         OffsetRect(Result,
-            Point.x - ((Result.Right - Result.Left) div 2), Point.y - (Result.Bottom - Result.Top) -   15);
+            Point.x - (WindowWidth div 2), Point.y - WindowHeight - 15);
                gppCenter:                      OffsetRect(Result,
-            Point.x - ((Result.Right - Result.Left) div 2), Point.y - ((Result.Bottom - Result.Top) div 2));
+            Point.x - (WindowWidth div 2), Point.y - (WindowHeight div 2));
                gppBottom:                      OffsetRect(Result,
-            Point.x - ((Result.Right - Result.Left) div 2), Point.y + 15);
+            Point.x - (WindowWidth div 2), Point.y + 15);
                gppLeftTop:                     OffsetRect(Result,
-            Point.x + 15, Point.y - (Result.Bottom - Result.Top) -     15);
+            Point.x + 15, Point.y - WindowHeight -     15);
                gppLeft:                        OffsetRect(Result,
-            Point.x + 15, Point.y - ((Result.Bottom - Result.Top) div 2));
+            Point.x + 15, Point.y - (WindowHeight div 2));
                gppLeftBottom:  OffsetRect(Result, Point.x + 15, Point.y + 15);         //\83M\83R\83i\83r\83X\83\8c \83p\81[\83g\82P\82Ì453\8e\81\82É\8a´\8eÓ
        end;