Add padding to bottom of screen for touchscreen
Mainly for NV14, but won't hurt TX16S, etc
This commit is contained in:
@@ -403,5 +403,10 @@ void ModelCurvesPage::build(FormWindow * window, int8_t focusIndex)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// extra bottom padding if touchscreen
|
||||||
|
#if defined HARDWARE_TOUCH
|
||||||
|
grid.nextLine();
|
||||||
|
#endif
|
||||||
|
|
||||||
window->setInnerHeight(grid.getWindowHeight());
|
window->setInnerHeight(grid.getWindowHeight());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -424,5 +424,10 @@ void RadioHardwarePage::build(FormWindow * window)
|
|||||||
});
|
});
|
||||||
grid.nextLine();
|
grid.nextLine();
|
||||||
|
|
||||||
|
// extra bottom padding if touchscreen
|
||||||
|
#if defined HARDWARE_TOUCH
|
||||||
|
grid.nextLine();
|
||||||
|
#endif
|
||||||
|
|
||||||
window->setInnerHeight(grid.getWindowHeight());
|
window->setInnerHeight(grid.getWindowHeight());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -524,6 +524,11 @@ void RadioSetupPage::build(FormWindow * window)
|
|||||||
});
|
});
|
||||||
grid.nextLine();
|
grid.nextLine();
|
||||||
|
|
||||||
|
// extra bottom padding if touchscreen
|
||||||
|
#if defined HARDWARE_TOUCH
|
||||||
|
grid.nextLine();
|
||||||
|
#endif
|
||||||
|
|
||||||
window->setInnerHeight(grid.getWindowHeight());
|
window->setInnerHeight(grid.getWindowHeight());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user