Commits

Steve Streeting committed 6f8925b

Backout revision 115

  • Participants
  • Parent commits edc1158

Comments (0)

Files changed (1)

BWSelectableToolbar.m

 	[self setDelegate:self];
 	[self setItemSelectors];
 	
-	if (!inIB)// && [[[self editableToolbar] _window] isSheet])
+	if (!inIB && [[[self editableToolbar] _window] isSheet])
 	{
 		// When using the toolbar in a sheet, the stored window sizes will be 
 		// incorrect because they include the title bar
 		NSSize actualSz = [[[self editableToolbar] _window] frame].size;
 		CGFloat heightDiff = storedSz.height - actualSz.height;
 		
-		if (heightDiff != 0)
+		for (NSString* identifier in [tempWSBI allKeys])
 		{
-			for (NSString* identifier in [tempWSBI allKeys])
-			{
-				
-				NSSize sz = [[tempWSBI objectForKey:identifier] sizeValue];
-				sz.height -= heightDiff;
-				[tempWSBI setObject:[NSValue valueWithSize:sz] forKey:identifier];
-				
-			}
-			[helper setWindowSizesByIdentifier:tempWSBI];
+			
+			NSSize sz = [[tempWSBI objectForKey:identifier] sizeValue];
+			sz.height -= heightDiff;
+			[tempWSBI setObject:[NSValue valueWithSize:sz] forKey:identifier];
 			
 		}
-		
+		[helper setWindowSizesByIdentifier:tempWSBI];
 		
 	}