src/c/main.c
static void verticalAlignTextLayer(TextLayer *layer, int inity) {
  GRect frame = layer_get_frame(text_layer_get_layer(layer));
  GSize content = text_layer_get_content_size(layer);
  // Adjust position of the layer so visually all the text are aligned to the bottom
  // This is neccesary cuz Pebble works aligning to the top - doesnt like how it looks
  int offsetv;
  //Handle nulls, no need to change
  if (content.h==0){
    offsetv=0;
  }
  else {
    offsetv=39-content.h;
  }
  layer_set_frame(text_layer_get_layer(layer),
                  GRect(frame.origin.x, inity + offsetv, frame.size.w, frame.size.h));
}
////End: Animations procs//
////Init: Layer updating////
//Vertical alignment
Animations procs
Init: Layer updating
Vertical alignment
Animations procs Init : Layer updating Vertical alignment
static void verticalAlignTextLayer(TextLayer *layer, int inity) {
  GRect frame = layer_get_frame(text_layer_get_layer(layer));
  GSize content = text_layer_get_content_size(layer);
  int offsetv;
  if (content.h==0){
    offsetv=0;
  }
  else {
    offsetv=39-content.h;
  }
  layer_set_frame(text_layer_get_layer(layer),
                  GRect(frame.origin.x, inity + offsetv, frame.size.w, frame.size.h));
}
static void verticalAlignTextLayer ( TextLayer * layer , int inity ) { GRect frame = layer_get_frame ( text_layer_get_layer ( layer ) ) ; GSize content = text_layer_get_content_size ( layer ) ; int offsetv ; if ( content . h == 0 ) { offsetv = 0 ; } else { offsetv = 39 - content . h ; } layer_set_frame ( text_layer_get_layer ( layer ) , GRect ( frame . origin . x , inity + offsetv , frame . size . w , frame . size . h ) ) ; }
End: Animations procs
Init: Layer updating
Vertical alignment
End : Animations procs Init : Layer updating Vertical alignment
// Adjust position of the layer so visually all the text are aligned to the bottom // This is neccesary cuz Pebble works aligning to the top - doesnt like how it looks //Handle nulls, no need to change