From 51e404fde5ca6de35db375bfd5c054438cf33706 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Sat, 9 May 2009 15:22:52 +0000 Subject: [PATCH] Fixed the initial size of the DeskCalc window. For some reason, it was resizing the window to the size of the dragger frame :-) (the frame variable was reused to a different purpose) Fixes ticket #3896 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30679 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/deskcalc/CalcWindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/apps/deskcalc/CalcWindow.cpp b/src/apps/deskcalc/CalcWindow.cpp index 1a83934e93..cce0e0f977 100644 --- a/src/apps/deskcalc/CalcWindow.cpp +++ b/src/apps/deskcalc/CalcWindow.cpp @@ -38,9 +38,10 @@ CalcWindow::CalcWindow(BRect frame, BMessage *settings) fCalcView = new CalcView(frame, baseColor, settings); // create replicant dragger - frame.top = frame.bottom - 7.0f; - frame.left = frame.right - 7.0f; - BDragger* dragger = new BDragger(frame, fCalcView, + BRect replicant_frame(frame); + replicant_frame.top = replicant_frame.bottom - 7.0f; + replicant_frame.left = replicant_frame.right - 7.0f; + BDragger* dragger = new BDragger(replicant_frame, fCalcView, B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM); // attach views