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
This commit is contained in:
parent
11f2f57fd9
commit
51e404fde5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user