SmCmdBoxWindow: reduce padding from 8 to 4
Change-Id: If87bc63b4bd3fd27eef665261667478d9284ff0b
This commit is contained in:
parent
20d4cd5e08
commit
d1501aa5e8
1 changed files with 14 additions and 5 deletions
|
@ -74,6 +74,9 @@
|
|||
#define MINZOOM 25
|
||||
#define MAXZOOM 800
|
||||
|
||||
// space around the edit window, in pixels
|
||||
#define CMD_BOX_PADDING 4
|
||||
|
||||
#define SmViewShell
|
||||
#include "smslots.hxx"
|
||||
|
||||
|
@ -721,9 +724,12 @@ SmViewShell * SmCmdBoxWindow::GetView()
|
|||
void SmCmdBoxWindow::Resize()
|
||||
{
|
||||
Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel());
|
||||
aRect.Left() += CMD_BOX_PADDING;
|
||||
aRect.Top() += CMD_BOX_PADDING;
|
||||
aRect.Right() -= CMD_BOX_PADDING;
|
||||
aRect.Bottom() -= CMD_BOX_PADDING;
|
||||
|
||||
DecorationView aView(this);
|
||||
aRect.Left() += 8; aRect.Top() += 8;
|
||||
aRect.Right()-= 8; aRect.Bottom()-= 8;
|
||||
aRect = aView.DrawFrame( aRect, FRAME_DRAW_DOUBLEIN | FRAME_DRAW_NODRAW );
|
||||
|
||||
aEdit.SetPosSizePixel(aRect.TopLeft(), aRect.GetSize());
|
||||
|
@ -735,10 +741,13 @@ void SmCmdBoxWindow::Resize()
|
|||
void SmCmdBoxWindow::Paint(const Rectangle& /*rRect*/)
|
||||
{
|
||||
Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel());
|
||||
aRect.Left() += CMD_BOX_PADDING;
|
||||
aRect.Top() += CMD_BOX_PADDING;
|
||||
aRect.Right() -= CMD_BOX_PADDING;
|
||||
aRect.Bottom() -= CMD_BOX_PADDING;
|
||||
|
||||
DecorationView aView(this);
|
||||
aRect.Left() += 8; aRect.Top() += 8;
|
||||
aRect.Right()-= 8; aRect.Bottom()-= 8;
|
||||
aRect = aView.DrawFrame( aRect, FRAME_DRAW_DOUBLEIN );
|
||||
aView.DrawFrame( aRect, FRAME_DRAW_DOUBLEIN );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue