Skip to content

Commit

Permalink
fix overly long input widgets being aligned incorrectly (thanks masoncb)
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Mar 11, 2019
1 parent d20a491 commit e188746
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/LScreens.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e188746

Please sign in to comment.