mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-24 14:29:28 +00:00
Monotone-Parent: 82068f0557914f395561a92071bea0e6791ac884
Monotone-Revision: e273e1fc79bb27da2ab8838b78616c5fb161fd58 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-08-29T23:58:16 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -126,18 +126,22 @@ static NSMutableArray *yearMenuItems = nil;
|
||||
|
||||
- (NSString *) verticalDragHandleStyle
|
||||
{
|
||||
NSString *vertical;
|
||||
|
||||
[self _setupContext];
|
||||
vertical = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||
|
||||
return [[moduleSettings objectForKey: @"DragHandleVertical"]
|
||||
stringByAppendingString: @"px"];
|
||||
return ((vertical && [vertical intValue] > 0) ? [vertical stringByAppendingFormat: @"px"] : nil);
|
||||
}
|
||||
|
||||
- (NSString *) horizontalDragHandleStyle
|
||||
{
|
||||
[self _setupContext];
|
||||
NSString *horizontal;
|
||||
|
||||
return [[moduleSettings objectForKey: @"DragHandleHorizontal"]
|
||||
stringByAppendingString: @"px"];
|
||||
[self _setupContext];
|
||||
horizontal = [moduleSettings objectForKey: @"DragHandleHorizontal"];
|
||||
|
||||
return ((horizontal && [horizontal intValue] > 0) ? [horizontal stringByAppendingFormat: @"px"] : nil);
|
||||
}
|
||||
|
||||
- (NSString *) eventsListViewStyle
|
||||
@@ -147,7 +151,7 @@ static NSMutableArray *yearMenuItems = nil;
|
||||
[self _setupContext];
|
||||
height = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||
|
||||
return (height ? [NSString stringWithFormat: @"%ipx", ([height intValue] - 27)] : nil);
|
||||
return ((height && [height intValue] > 0) ? [NSString stringWithFormat: @"%ipx", ([height intValue] - 27)] : nil);
|
||||
}
|
||||
|
||||
- (WOResponse *) saveDragHandleStateAction
|
||||
|
||||
Reference in New Issue
Block a user