From 3eebe5de65edfcf40efffac399fd6083db4b55f7 Mon Sep 17 00:00:00 2001 From: "akalin@chromium.org" Date: Wed, 11 Nov 2009 20:59:51 +0000 Subject: Added vertical shift for sync stuff. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31707 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/preferences_window_controller.mm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'chrome') diff --git a/chrome/browser/cocoa/preferences_window_controller.mm b/chrome/browser/cocoa/preferences_window_controller.mm index 21721ede..ba1f51f 100644 --- a/chrome/browser/cocoa/preferences_window_controller.mm +++ b/chrome/browser/cocoa/preferences_window_controller.mm @@ -564,6 +564,9 @@ class PrefObserverBridge : public NotificationObserver, delta:NSMakeSize(0.0, verticalShift)]; verticalShift = 0.0; + verticalShift += AutoSizeGroup(personalStuffGroupSync_, + kAutoSizeGroupBehaviorVerticalToFit, + verticalShift); verticalShift += AutoSizeGroup(personalStuffGroupThemes_, kAutoSizeGroupBehaviorHorizontalToFit, verticalShift); @@ -582,6 +585,7 @@ class PrefObserverBridge : public NotificationObserver, if (sync_service_) { sync_service_->AddObserver(observer_.get()); + [self syncStateChanged]; } else { // Disable controls if sync is disabled. RemoveViewFromView(personalStuffView_, syncLabel_); @@ -636,11 +640,6 @@ class PrefObserverBridge : public NotificationObserver, // TODO(pinkerton): save/restore position based on prefs. [[self window] center]; - - // Get initial sync state. - if (sync_service_) { - [self syncStateChanged]; - } } - (void)dealloc { -- cgit v1.1