Appearance: Use font relative spacing insets for the preview boxes

Set the top inset to 0 since BBox's now have a natural top offset.
This commit is contained in:
John Scipione
2013-05-30 20:40:45 -04:00
parent 4666484ff2
commit 80e5b062fe
@@ -10,6 +10,7 @@
* Stephan Aßmus <[email protected]>
*/
#include "FontSelectionView.h"
#include <Box.h>
@@ -121,7 +122,7 @@ FontSelectionView::FontSelectionView(const char* name,
fPreviewBox = new BBox("preview box", B_WILL_DRAW | B_FRAME_EVENTS);
fPreviewBox->AddChild(BGroupLayoutBuilder(B_HORIZONTAL)
.Add(fPreviewText)
.SetInsets(5, 5, 5, 5)
.SetInsets(B_USE_SMALL_SPACING, 0, B_USE_SMALL_SPACING, B_USE_SMALL_SPACING)
.TopView()
);
}