Skip to content

Commit

Permalink
Fix simply_ui to adjust the body draw box by the content height only …
Browse files Browse the repository at this point in the history
…(Addresses pebble#142)
  • Loading branch information
Meiguro committed Feb 14, 2016
1 parent 05d4f5c commit 72de087
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/simply/simply_ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ static void layer_update_callback(Layer *layer, GContext *ctx) {
enable_text_flow_and_paging(self, body_attributes, &body_rect), NOOP);
GSize body_size = graphics_text_layout_get_content_size_with_attributes(
body->text, body_font, body_rect, GTextOverflowModeWordWrap, text_align, body_attributes);
body_size.w = body_rect.size.w;
if (self->window.is_scrollable) {
body_rect.size = body_size;
int16_t new_height = cursor.y + 2 * margin_y + body_size.h;
Expand Down

0 comments on commit 72de087

Please sign in to comment.