Ticket #2147: fonts_preflet_margin.diff

File fonts_preflet_margin.diff, 727 bytes (added by stpere, 17 years ago)

Patch to add a 5 pixels margin at the left and right of the tabview in font preflet

  • MainWindow.cpp

     
    5555    rect = Bounds();
    5656    rect.top += 5;
    5757    rect.bottom -= 20 + buttonHeight;
     58    rect.left += 5;
    5859    BTabView *tabView = new BTabView(rect, "tabview", B_WIDTH_FROM_LABEL);
    5960
    6061    rect = tabView->ContainerView()->Bounds().InsetByCopy(5, 8);
     
    8283        tabView->ContainerView()->ResizeBy(0, heightDiff);
    8384    }
    8485
    85     ResizeTo(tabView->Bounds().Width(), tabView->Frame().bottom + 20 + buttonHeight);
     86    ResizeTo(tabView->Bounds().Width() + 10, tabView->Frame().bottom + 20 + buttonHeight);
    8687    view->AddChild(tabView);
    8788    fFontsView->ResizeToPreferred();
    8889