diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-15 16:46:28 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-15 17:10:23 +0900 |
commit | ce17f392522ac9d77bd9ffb409a349f5e65efa83 (patch) | |
tree | e8c3af6d033a1038d49871bd41c71e341cf7230f /starmath | |
parent | ad0c5e6c663642c1e4b212e4e6a38ebfe8c3e0a7 (diff) |
fix starmath tests
Change-Id: I0fc6fc4a1ce71507f97797dcfe77a6d5b21e4b80
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/view.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 12f5c4ceb83d..3633cb6b4fd7 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -740,6 +740,16 @@ SmViewShell * SmCmdBoxWindow::GetView() void SmCmdBoxWindow::Resize() { + Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel()); + aRect.Left() += CMD_BOX_PADDING; + aRect.Top() += CMD_BOX_PADDING_TOP; + aRect.Right() -= CMD_BOX_PADDING; + aRect.Bottom() -= CMD_BOX_PADDING; + + DecorationView aView(this); + aRect = aView.DrawFrame(aRect, DrawFrameStyle::In, DrawFrameFlags::NoDraw); + + aEdit->SetPosSizePixel(aRect.TopLeft(), aRect.GetSize()); SfxDockingWindow::Resize(); Invalidate(); } |