Ticket #5969: terminal.diff
File terminal.diff, 740 bytes (added by , 14 years ago) |
---|
-
TermView.cpp
208 208 if (status != B_OK) 209 209 throw status; 210 210 211 float width; 212 float height; 213 GetPreferredSize(&width, &height); 214 ResizeTo(width, height); 215 211 216 // TODO: Don't show the dragger, since replicant capabilities 212 217 // don't work very well ATM. 213 218 /* … … 1024 1029 void 1025 1030 TermView::AttachedToWindow() 1026 1031 { 1032 int rows; 1033 int columns; 1027 1034 fMouseButtons = 0; 1028 1035 1036 GetTermSizeFromRect(Bounds(), &rows, &columns); 1037 if (rows > 5 || columns > 5) 1038 SetTermSize(rows, columns); 1029 1039 MakeFocus(true); 1030 1040 if (fScrollBar) { 1031 1041 fScrollBar->SetSteps(fFontHeight, fFontHeight * fRows);