summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-09-11 13:35:46 +0200
committerThomas Arnhold <thomas@arnhold.org>2013-09-11 18:14:16 +0200
commit59a4b78bbe4a1aa1ef225adbc5cf3570a4de9b5e (patch)
tree8a9fb1de0bf96892a5a4bfbb865ad47213edd9bb /starmath
parent550b275e634a5a16bf55cbb716f21608fa211e3e (diff)
fdo#69111: Set edit window border to 4 again.
But increase the border on top to tear of the edit window easier. Change-Id: I527ede488e4773dd631182d73809fef916b52c1a
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/view.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 7022cb3109bc..445b0be2bc76 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -76,7 +76,10 @@
#define MAXZOOM 800
// space around the edit window, in pixels
-#define CMD_BOX_PADDING 10
+// fdo#69111: Increased border on the top so that the window is
+// easier to tear off.
+#define CMD_BOX_PADDING 4
+#define CMD_BOX_PADDING_TOP 10
#define SmViewShell
#include "smslots.hxx"
@@ -732,7 +735,7 @@ void SmCmdBoxWindow::Resize()
{
Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel());
aRect.Left() += CMD_BOX_PADDING;
- aRect.Top() += CMD_BOX_PADDING;
+ aRect.Top() += CMD_BOX_PADDING_TOP;
aRect.Right() -= CMD_BOX_PADDING;
aRect.Bottom() -= CMD_BOX_PADDING;
@@ -749,7 +752,7 @@ void SmCmdBoxWindow::Paint(const Rectangle& /*rRect*/)
{
Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel());
aRect.Left() += CMD_BOX_PADDING;
- aRect.Top() += CMD_BOX_PADDING;
+ aRect.Top() += CMD_BOX_PADDING_TOP;
aRect.Right() -= CMD_BOX_PADDING;
aRect.Bottom() -= CMD_BOX_PADDING;