DiskProbe: Adjust layout building in StringEditor.
Does not seem to affect #13164.
This commit is contained in:
@@ -206,18 +206,17 @@ StringEditor::StringEditor(DataEditor& editor)
|
|||||||
: TypeEditorView(B_TRANSLATE("String editor"), 0, editor)
|
: TypeEditorView(B_TRANSLATE("String editor"), 0, editor)
|
||||||
{
|
{
|
||||||
SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
|
SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
|
||||||
SetLayout(new BGroupLayout(B_VERTICAL));
|
|
||||||
|
|
||||||
BStringView *stringView = new BStringView(B_EMPTY_STRING,
|
BStringView *stringView = new BStringView(B_EMPTY_STRING,
|
||||||
B_TRANSLATE("Contents:"));
|
B_TRANSLATE("Contents:"));
|
||||||
stringView->ResizeToPreferred();
|
|
||||||
AddChild(stringView);
|
|
||||||
|
|
||||||
fTextView = new BTextView(B_EMPTY_STRING, B_WILL_DRAW);
|
fTextView = new BTextView(B_EMPTY_STRING, B_WILL_DRAW);
|
||||||
|
BScrollView* scrollView = new BScrollView("scroller", fTextView, 0, true, true);
|
||||||
|
|
||||||
BScrollView* scrollView = new BScrollView("scroller", fTextView,
|
BLayoutBuilder::Group<>(this, B_VERTICAL)
|
||||||
B_WILL_DRAW, true, true);
|
.Add(stringView)
|
||||||
AddChild(scrollView);
|
.Add(scrollView)
|
||||||
|
.End();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user