Ticket #3674: patch
File patch, 1.3 KB (added by , 16 years ago) |
---|
-
CalcView.cpp
6 6 * Authors: 7 7 * Timothy Wayper <timmy@wunderbear.com> 8 8 * Stephan Aßmus <superstippi@gmx.de> 9 * Philippe Saint-Pierre, stpere@gmail.com 9 10 */ 10 11 11 12 #include "CalcView.h" … … 203 204 if (be_control_look == NULL) 204 205 SetFont(be_bold_font); 205 206 206 BRect frame(Frame());207 FrameResized(frame.Width(), frame.Height());208 209 207 fPopUpMenu->SetTargetForItems(this); 210 208 _ShowKeypad(fOptions->show_keypad); 211 209 } … … 656 654 fExpressionTextView->MoveTo(frame.LeftTop()); 657 655 fExpressionTextView->ResizeTo(frame.Width(), frame.Height()); 658 656 659 frame.OffsetTo(B_ORIGIN);660 float inset = (frame.Height() - fExpressionTextView->LineHeight(0)) / 2;661 frame.InsetBy(inset, inset);662 fExpressionTextView->SetTextRect(frame);663 664 657 // configure expression text view font size and color 665 658 float sizeDisp = fShowKeypad ? fHeight * kDisplayScaleY : fHeight; 666 659 BFont font(be_bold_font); 667 660 font.SetSize(sizeDisp * kExpressionFontScaleY); 668 661 fExpressionTextView->SetFontAndColor(&font, B_FONT_ALL); 662 663 frame.OffsetTo(B_ORIGIN); 664 float inset = (frame.Height() - fExpressionTextView->LineHeight(0)) / 2; 665 frame.InsetBy(inset, inset); 666 fExpressionTextView->SetTextRect(frame); 669 667 } 670 668 671 669