Monotone-Parent: 82068f0557914f395561a92071bea0e6791ac884
Monotone-Revision: e273e1fc79bb27da2ab8838b78616c5fb161fd58 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-08-29T23:58:16 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
89deab41e7
commit
344d0e00b3
|
@ -147,7 +147,7 @@
|
|||
[self _setupContext];
|
||||
vertical = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||
|
||||
return (vertical ? [vertical stringByAppendingFormat: @"px"] : nil);
|
||||
return ((vertical && [vertical intValue] > 0) ? [vertical stringByAppendingFormat: @"px"] : nil);
|
||||
}
|
||||
|
||||
- (NSString *) horizontalDragHandleStyle
|
||||
|
@ -157,17 +157,17 @@
|
|||
[self _setupContext];
|
||||
horizontal = [moduleSettings objectForKey: @"DragHandleHorizontal"];
|
||||
|
||||
return (horizontal ? [horizontal stringByAppendingFormat: @"px"] : nil);
|
||||
return ((horizontal && [horizontal intValue] > 0) ? [horizontal stringByAppendingFormat: @"px"] : nil);
|
||||
}
|
||||
|
||||
- (NSString *) contactsListContentStyle
|
||||
{
|
||||
int height;
|
||||
NSString *height;
|
||||
|
||||
[self _setupContext];
|
||||
height = [[moduleSettings objectForKey: @"DragHandleVertical"] intValue];
|
||||
[self _setupContext];
|
||||
height = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||
|
||||
return (height ? [NSString stringWithFormat: @"%ipx", (height - 27)] : nil);
|
||||
return ((height && [height intValue] > 0) ? [NSString stringWithFormat: @"%ipx", ([height intValue] - 27)] : nil);
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -270,7 +270,7 @@
|
|||
[self _setupContext];
|
||||
vertical = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||
|
||||
return (vertical ? [vertical stringByAppendingFormat: @"px"] : nil);
|
||||
return ((vertical && [vertical intValue] > 0) ? [vertical stringByAppendingFormat: @"px"] : nil);
|
||||
}
|
||||
|
||||
- (NSString *) horizontalDragHandleStyle
|
||||
|
@ -280,7 +280,7 @@
|
|||
[self _setupContext];
|
||||
horizontal = [moduleSettings objectForKey: @"DragHandleHorizontal"];
|
||||
|
||||
return (horizontal ? [horizontal stringByAppendingFormat: @"px"] : nil);
|
||||
return ((horizontal && [horizontal intValue] > 0) ? [horizontal stringByAppendingFormat: @"px"] : nil);
|
||||
}
|
||||
|
||||
- (NSString *) mailboxContentStyle
|
||||
|
@ -290,7 +290,7 @@
|
|||
[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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue