Ticket #9882: 0001-Fix-layout-issue-in-Backgrounds-preflet.patch

File 0001-Fix-layout-issue-in-Backgrounds-preflet.patch, 1.4 KB (added by yourpalal, 11 years ago)

fix for bug #9882

  • src/preferences/backgrounds/BackgroundsView.cpp

    From fb102712c9165b849ca75a71c21d87ae72d547b7 Mon Sep 17 00:00:00 2001
    From: Alex Wilson <yourpalal2@gmail.com>
    Date: Mon, 22 Jul 2013 02:34:17 +0000
    Subject: [PATCH] Fix layout issue in Backgrounds preflet.
    
    Add an extra column to the grid layout so that the menu fields are free
    to be much bigger than the checkbox.
    
    closes #9882
    ---
     src/preferences/backgrounds/BackgroundsView.cpp |    6 ++++--
     1 file changed, 4 insertions(+), 2 deletions(-)
    
    diff --git a/src/preferences/backgrounds/BackgroundsView.cpp b/src/preferences/backgrounds/BackgroundsView.cpp
    index 9e47910..5312836 100644
    a b BackgroundsView::BackgroundsView()  
    191191    rightbox->AddChild(BLayoutBuilder::Group<>(B_VERTICAL, B_USE_DEFAULT_SPACING)
    192192        .AddGrid(B_USE_DEFAULT_SPACING, B_USE_SMALL_SPACING)
    193193            .Add(imageMenuField->CreateLabelLayoutItem(), 0, 0)
    194             .Add(imageMenuField->CreateMenuBarLayoutItem(), 1, 0)
     194            .Add(imageMenuField->CreateMenuBarLayoutItem(), 1, 0, 2, 1)
    195195            .Add(placementMenuField->CreateLabelLayoutItem(), 0, 1)
    196             .Add(placementMenuField->CreateMenuBarLayoutItem(), 1, 1)
     196            .Add(placementMenuField->CreateMenuBarLayoutItem(), 1, 1, 2, 1)
    197197            .Add(fIconLabelOutline, 1, 2)
     198                // checkbox only spans one column so that it
     199                // doesn't dictate the width of the menu bars.
    198200            .End()
    199201        .AddGlue()
    200202        .Add(fPicker)