Skip to content

Commit

Permalink
Remove the extra 2px space in the end of each cell.
Browse files Browse the repository at this point in the history
  • Loading branch information
neal committed Feb 12, 2014
1 parent c8bff82 commit 8861407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows/headlines.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ static int16_t menu_get_header_height_callback(struct MenuLayer *menu_layer, uin

static int16_t menu_get_cell_height_callback(struct MenuLayer *menu_layer, MenuIndex *cell_index, void *callback_context) {
if (num_headlines != 0) {
return graphics_text_layout_get_content_size(headlines[cell_index->row].title, fonts_get_system_font(FONT_KEY_GOTHIC_18), (GRect) { .origin = { 2, 0 }, .size = { PEBBLE_WIDTH - 4, 128 } }, GTextOverflowModeFill, GTextAlignmentLeft).h + 8;
return graphics_text_layout_get_content_size(headlines[cell_index->row].title, fonts_get_system_font(FONT_KEY_GOTHIC_18), (GRect) { .origin = { 2, 0 }, .size = { PEBBLE_WIDTH - 4, 128 } }, GTextOverflowModeFill, GTextAlignmentLeft).h + 6;
}
return MENU_CELL_BASIC_CELL_HEIGHT;
}
Expand Down

0 comments on commit 8861407

Please sign in to comment.