[Adium-commits] adium 1979:4130065c831c: Use a #define'd constant instead of a l...
adium-commits at adiumx.com
adium-commits at adiumx.com
Sat Apr 25 23:36:08 UTC 2009
details: http://hg.adiumx.com/adium/rev/4130065c831c
revision: 1979:4130065c831c
author: Zachary West <zacw at adiumx.com>
date: Sat Apr 25 19:36:01 2009 -0400
Use a #define'd constant instead of a literal for the tab height. Fix some positioning.
When drawing tabs at the top, don't try and position the content view 2 pixels higher. This gives the visual effect of the tab "connecting" to the content below, but it also causes weird drawing problems with the user list and message view, especially related to scrolling.
diffstat:
Plugins/Dual Window Interface/AIMessageWindowController.m | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 19c79adc5023 -r 4130065c831c Plugins/Dual Window Interface/AIMessageWindowController.m
--- a/Plugins/Dual Window Interface/AIMessageWindowController.m Sat Apr 25 19:05:20 2009 -0400
+++ b/Plugins/Dual Window Interface/AIMessageWindowController.m Sat Apr 25 19:36:01 2009 -0400
@@ -330,7 +330,7 @@
switch (orientation) {
case PSMTabBarHorizontalOrientation:
{
- tabBarFrame.size.height = [tabView_tabBar isTabBarHidden] ? 1 : 22;
+ tabBarFrame.size.height = [tabView_tabBar isTabBarHidden] ? 1 : kPSMTabBarControlHeight;
tabBarFrame.size.width = contentRect.size.width + 1;
//set the position of the tab bar (top/bottom)
@@ -344,7 +344,7 @@
} else {
tabBarFrame.origin.y = NSMaxY(contentRect) - NSHeight(tabBarFrame);
tabViewMessagesFrame.origin.y = NSMinY(contentRect);
- tabViewMessagesFrame.size.height = NSHeight(contentRect) - NSHeight(tabBarFrame) + 2;
+ tabViewMessagesFrame.size.height = NSHeight(contentRect) - NSHeight(tabBarFrame);
[tabView_tabBar setAutoresizingMask:(NSViewMinYMargin | NSViewWidthSizable)];
}
/* If the cell is less than 60, icon + title + unread message count may overlap */
More information about the commits
mailing list