From 26bc1632000d90f95e6aaef5f468c735c5370ed6 Mon Sep 17 00:00:00 2001 From: anevilyak Date: Thu, 9 Dec 2010 21:50:56 +0000 Subject: [PATCH] Layout fixes that hadn't yet been committed. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@548 94f232f2-1747-11df-bad5-a5bfde151594 --- src/apps/webpositive/AuthenticationPanel.cpp | 4 ++-- src/apps/webpositive/BrowserWindow.cpp | 8 ++++---- src/apps/webpositive/DownloadWindow.cpp | 6 +++--- src/apps/webpositive/URLInputGroup.cpp | 2 +- src/apps/webpositive/tabview/TabContainerView.cpp | 2 +- src/apps/webpositive/tabview/TabManager.cpp | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/apps/webpositive/AuthenticationPanel.cpp b/src/apps/webpositive/AuthenticationPanel.cpp index 8d81bbb311..7dcc55260f 100644 --- a/src/apps/webpositive/AuthenticationPanel.cpp +++ b/src/apps/webpositive/AuthenticationPanel.cpp @@ -136,9 +136,9 @@ bool AuthenticationPanel::getAuthentication(const BString& text, m_rememberCredentialsCheckBox->SetValue(previousRememberCredentials); // create layout - SetLayout(new BGroupLayout(B_VERTICAL)); + SetLayout(new BGroupLayout(B_VERTICAL, 0.0)); float spacing = be_control_look->DefaultItemSpacing(); - AddChild(BGroupLayoutBuilder(B_VERTICAL) + AddChild(BGroupLayoutBuilder(B_VERTICAL, 0.0) .Add(BGridLayoutBuilder(0, spacing) .Add(textView, 0, 0, 2) .Add(m_usernameTextControl->CreateLabelLayoutItem(), 0, 1) diff --git a/src/apps/webpositive/BrowserWindow.cpp b/src/apps/webpositive/BrowserWindow.cpp index 59c30af523..643c20ad26 100644 --- a/src/apps/webpositive/BrowserWindow.cpp +++ b/src/apps/webpositive/BrowserWindow.cpp @@ -420,7 +420,7 @@ BrowserWindow::BrowserWindow(BRect frame, SettingsMessage* appSettings, fFindCloseButton = new BButton("Close", new BMessage(EDIT_HIDE_FIND_GROUP)); fFindCaseSensitiveCheckBox = new BCheckBox("Match case"); - BGroupLayout* findGroup = BLayoutBuilder::Group<>(B_VERTICAL) + BGroupLayout* findGroup = BLayoutBuilder::Group<>(B_VERTICAL, 0.0) .Add(new BSeparatorView(B_HORIZONTAL, B_PLAIN_BORDER)) .Add(BGroupLayoutBuilder(B_HORIZONTAL, kElementSpacing) .Add(fFindTextControl) @@ -435,7 +435,7 @@ BrowserWindow::BrowserWindow(BRect frame, SettingsMessage* appSettings, ; // Navigation group - BGroupLayout* navigationGroup = BLayoutBuilder::Group<>(B_VERTICAL) + BGroupLayout* navigationGroup = BLayoutBuilder::Group<>(B_VERTICAL, 0.0) .Add(BLayoutBuilder::Group<>(B_HORIZONTAL, kElementSpacing) .Add(fBackButton) .Add(fForwardButton) @@ -449,7 +449,7 @@ BrowserWindow::BrowserWindow(BRect frame, SettingsMessage* appSettings, ; // Status bar group - BGroupLayout* statusGroup = BLayoutBuilder::Group<>(B_VERTICAL) + BGroupLayout* statusGroup = BLayoutBuilder::Group<>(B_VERTICAL, 0.0) .Add(new BSeparatorView(B_HORIZONTAL, B_PLAIN_BORDER)) .Add(BLayoutBuilder::Group<>(B_HORIZONTAL, kElementSpacing) .Add(fStatusText) @@ -470,7 +470,7 @@ BrowserWindow::BrowserWindow(BRect frame, SettingsMessage* appSettings, ; // Layout - AddChild(BLayoutBuilder::Group<>(B_VERTICAL) + AddChild(BLayoutBuilder::Group<>(B_VERTICAL, 0.0) #if !INTEGRATE_MENU_INTO_TAB_BAR .Add(menuBarGroup) #endif diff --git a/src/apps/webpositive/DownloadWindow.cpp b/src/apps/webpositive/DownloadWindow.cpp index 6329cf3c45..859722df47 100644 --- a/src/apps/webpositive/DownloadWindow.cpp +++ b/src/apps/webpositive/DownloadWindow.cpp @@ -66,7 +66,7 @@ class DownloadsContainerView : public BGroupView { public: DownloadsContainerView() : - BGroupView(B_VERTICAL) + BGroupView(B_VERTICAL, 0.0) { SetFlags(Flags() | B_PULSE_NEEDED); SetViewColor(245, 245, 245); @@ -149,7 +149,7 @@ DownloadWindow::DownloadWindow(BRect frame, bool visible, downloadPath.Path()); settings->SetValue(kSettingsKeyDownloadPath, fDownloadPath); - SetLayout(new BGroupLayout(B_VERTICAL)); + SetLayout(new BGroupLayout(B_VERTICAL, 0.0)); DownloadsContainerView* downloadsGroupView = new DownloadsContainerView(); fDownloadViewsLayout = downloadsGroupView->GroupLayout(); @@ -180,7 +180,7 @@ DownloadWindow::DownloadWindow(BRect frame, bool visible, const float spacing = be_control_look->DefaultItemSpacing(); - AddChild(BGroupLayoutBuilder(B_VERTICAL) + AddChild(BGroupLayoutBuilder(B_VERTICAL, 0.0) .Add(menuBar) .Add(fDownloadsScrollView) .Add(new BSeparatorView(B_HORIZONTAL, B_PLAIN_BORDER)) diff --git a/src/apps/webpositive/URLInputGroup.cpp b/src/apps/webpositive/URLInputGroup.cpp index e5d5c9ecb3..f84f0e12bf 100644 --- a/src/apps/webpositive/URLInputGroup.cpp +++ b/src/apps/webpositive/URLInputGroup.cpp @@ -540,7 +540,7 @@ private: URLInputGroup::URLInputGroup(BMessage* goMessage) : - BGroupView(B_HORIZONTAL), + BGroupView(B_HORIZONTAL, 0.0), fWindowActive(false) { GroupLayout()->SetInsets(2, 2, 2, 2); diff --git a/src/apps/webpositive/tabview/TabContainerView.cpp b/src/apps/webpositive/tabview/TabContainerView.cpp index 483a692749..a95136a508 100644 --- a/src/apps/webpositive/tabview/TabContainerView.cpp +++ b/src/apps/webpositive/tabview/TabContainerView.cpp @@ -49,7 +49,7 @@ static const float kLeftTabInset = 4; TabContainerView::TabContainerView(Controller* controller) : - BGroupView(B_HORIZONTAL), + BGroupView(B_HORIZONTAL, 0.0), fLastMouseEventTab(NULL), fMouseDown(false), fClickCount(0), diff --git a/src/apps/webpositive/tabview/TabManager.cpp b/src/apps/webpositive/tabview/TabManager.cpp index 4a26c33271..7ab8066436 100644 --- a/src/apps/webpositive/tabview/TabManager.cpp +++ b/src/apps/webpositive/tabview/TabManager.cpp @@ -197,7 +197,7 @@ class TabContainerGroup : public BGroupView { public: TabContainerGroup(TabContainerView* tabContainerView) : - BGroupView(B_HORIZONTAL), + BGroupView(B_HORIZONTAL, 0.0), fTabContainerView(tabContainerView), fScrollLeftTabButton(NULL), fScrollRightTabButton(NULL) @@ -263,7 +263,7 @@ class TabButtonContainer : public BGroupView { public: TabButtonContainer() : - BGroupView(B_HORIZONTAL) + BGroupView(B_HORIZONTAL, 0.0) { SetFlags(Flags() | B_WILL_DRAW); SetViewColor(B_TRANSPARENT_COLOR);