From d30c1d2661bca6f034ec4c6c11d08837888b90da Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Fri, 17 Dec 2021 05:13:15 +0300
Subject: [PATCH 11/24] Fix bdcreate.C layout

---
 cinelerra-5.1/cinelerra/bdcreate.C | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/cinelerra-5.1/cinelerra/bdcreate.C b/cinelerra-5.1/cinelerra/bdcreate.C
index 67745a8d..90fb8734 100644
--- a/cinelerra-5.1/cinelerra/bdcreate.C
+++ b/cinelerra-5.1/cinelerra/bdcreate.C
@@ -792,16 +792,17 @@ void CreateBD_GUI::create_objects()
 	
 	title = new BC_Title(x, y, _("Profile:"), MEDIUMFONT, YELLOW);
 	add_subwindow(title);
-	y +=  title->get_h()+pady;
-	profile = new CreateBD_Profile(this, x1, y);
+	x += title->get_w()+padx;
+	int prev_title_w = title->get_w()+padx;
+	profile = new CreateBD_Profile(this, x, y);
 	profile->create_objects();
 	profiles.append(new BC_ListBoxItem("bluray.m2ts"));
 	profiles.append(new BC_ListBoxItem("bluray_lpcm.m2ts"));
 	profile->update_list(&profiles);
 	profile->update(profiles[0]->get_text());
+	y += profile->get_h() + pady;
 	
-	
-	title = new BC_Title(x, y, _("Format:"), MEDIUMFONT, YELLOW);
+	title = new BC_Title(x-prev_title_w, y, _("Format:"), MEDIUMFONT, YELLOW);
 	add_subwindow(title);
 	standard = new CreateBD_Format(this, title->get_w() + padx, y);
 	add_subwindow(standard);
@@ -1145,7 +1146,7 @@ int CreateBD_MediaSize::handle_event()
 }
 
 CreateBD_Profile::CreateBD_Profile(CreateBD_GUI *gui, int x, int y)
- : BC_PopupTextBox(gui, 0, 0, x, y, xS(70),yS(50))
+ : BC_PopupTextBox(gui, 0, 0, x, y, xS(170),yS(50))
 {
 	this->gui = gui;
 }
-- 
2.34.1

