Kaydet (Commit) 59a4b78b authored tarafından Thomas Arnhold's avatar Thomas Arnhold

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
üst 550b275e
...@@ -76,7 +76,10 @@ ...@@ -76,7 +76,10 @@
#define MAXZOOM 800 #define MAXZOOM 800
// space around the edit window, in pixels // 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 #define SmViewShell
#include "smslots.hxx" #include "smslots.hxx"
...@@ -732,7 +735,7 @@ void SmCmdBoxWindow::Resize() ...@@ -732,7 +735,7 @@ void SmCmdBoxWindow::Resize()
{ {
Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel()); Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel());
aRect.Left() += CMD_BOX_PADDING; aRect.Left() += CMD_BOX_PADDING;
aRect.Top() += CMD_BOX_PADDING; aRect.Top() += CMD_BOX_PADDING_TOP;
aRect.Right() -= CMD_BOX_PADDING; aRect.Right() -= CMD_BOX_PADDING;
aRect.Bottom() -= CMD_BOX_PADDING; aRect.Bottom() -= CMD_BOX_PADDING;
...@@ -749,7 +752,7 @@ void SmCmdBoxWindow::Paint(const Rectangle& /*rRect*/) ...@@ -749,7 +752,7 @@ void SmCmdBoxWindow::Paint(const Rectangle& /*rRect*/)
{ {
Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel()); Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel());
aRect.Left() += CMD_BOX_PADDING; aRect.Left() += CMD_BOX_PADDING;
aRect.Top() += CMD_BOX_PADDING; aRect.Top() += CMD_BOX_PADDING_TOP;
aRect.Right() -= CMD_BOX_PADDING; aRect.Right() -= CMD_BOX_PADDING;
aRect.Bottom() -= CMD_BOX_PADDING; aRect.Bottom() -= CMD_BOX_PADDING;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment