Skip to content
Permalink
Browse files

fix overly long input widgets being aligned incorrectly (thanks masoncb)

  • Loading branch information...
UnknownShadow200 committed Mar 11, 2019
1 parent d20a491 commit e188746f034dd7c981786fd1e124ba04a0aa3074
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/LScreens.c
@@ -630,9 +630,9 @@ static void DirectConnectScreen_Init(struct LScreen* s_) {

static void DirectConnectScreen_Reposition(struct LScreen* s_) {
struct DirectConnectScreen* s = (struct DirectConnectScreen*)s_;
LWidget_SetLocation(&s->IptUsername, ANCHOR_CENTRE, ANCHOR_CENTRE, 0, -120);
LWidget_SetLocation(&s->IptAddress, ANCHOR_CENTRE, ANCHOR_CENTRE, 0, -75);
LWidget_SetLocation(&s->IptMppass, ANCHOR_CENTRE, ANCHOR_CENTRE, 0, -30);
LWidget_SetLocation(&s->IptUsername, ANCHOR_CENTRE_MIN, ANCHOR_CENTRE, -165, -120);
LWidget_SetLocation(&s->IptAddress, ANCHOR_CENTRE_MIN, ANCHOR_CENTRE, -165, -75);
LWidget_SetLocation(&s->IptMppass, ANCHOR_CENTRE_MIN, ANCHOR_CENTRE, -165, -30);

LWidget_SetLocation(&s->BtnConnect, ANCHOR_CENTRE, ANCHOR_CENTRE, -110, 20);
LWidget_SetLocation(&s->BtnBack, ANCHOR_CENTRE, ANCHOR_CENTRE, 125, 20);
@@ -791,8 +791,8 @@ static void MainScreen_Init(struct LScreen* s_) {

static void MainScreen_Reposition(struct LScreen* s_) {
struct MainScreen* s = (struct MainScreen*)s_;
LWidget_SetLocation(&s->IptUsername, ANCHOR_CENTRE, ANCHOR_CENTRE, 0, -120);
LWidget_SetLocation(&s->IptPassword, ANCHOR_CENTRE, ANCHOR_CENTRE, 0, -75);
LWidget_SetLocation(&s->IptUsername, ANCHOR_CENTRE_MIN, ANCHOR_CENTRE, -140, -120);
LWidget_SetLocation(&s->IptPassword, ANCHOR_CENTRE_MIN, ANCHOR_CENTRE, -140, -75);

LWidget_SetLocation(&s->BtnLogin, ANCHOR_CENTRE, ANCHOR_CENTRE, -90, -25);
LWidget_SetLocation(&s->LblStatus, ANCHOR_CENTRE, ANCHOR_CENTRE, 0, 20);

0 comments on commit e188746

Please sign in to comment.
You can’t perform that action at this time.