Input preferences: Make Device list width is font sensitive

Fixes #15738

Change-Id: I125c47f015c939acbd70c9509310ec3cdef7d2c5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2308
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Preetpalkaur3701
2020-03-08 07:53:27 +00:00
committed by Adrien Destugues
parent 21cb95732e
commit c8c9723ae5
+1 -2
View File
@@ -34,10 +34,9 @@ DeviceListView::DeviceListView(const char* name)
fScrollView = new BScrollView("ScrollView",fDeviceList,
0 , false, B_FANCY_BORDER);
SetExplicitMinSize(BSize(160, B_SIZE_UNSET));
SetExplicitMinSize(BSize(StringWidth("M") * 10, B_SIZE_UNSET));
SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET));
BLayoutBuilder::Group<>(this, B_VERTICAL)
.Add(fScrollView)
.End();