Ticket #5969: terminal.diff

File terminal.diff, 740 bytes (added by romain, 14 years ago)
  • TermView.cpp

     
    208208    if (status != B_OK)
    209209        throw status;
    210210
     211    float width;
     212    float height;
     213    GetPreferredSize(&width, &height);
     214    ResizeTo(width, height);
     215
    211216    // TODO: Don't show the dragger, since replicant capabilities
    212217    // don't work very well ATM.
    213218    /*
     
    10241029void
    10251030TermView::AttachedToWindow()
    10261031{
     1032    int rows;
     1033    int columns;
    10271034    fMouseButtons = 0;
    10281035
     1036    GetTermSizeFromRect(Bounds(), &rows, &columns);
     1037    if (rows > 5 || columns > 5)
     1038        SetTermSize(rows, columns);
    10291039    MakeFocus(true);
    10301040    if (fScrollBar) {
    10311041        fScrollBar->SetSteps(fFontHeight, fFontHeight * fRows);