1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

handle small screen resolutions more gracefully

fixes #16
This commit is contained in:
cTn 2013-12-18 14:57:27 +01:00
parent 078d305259
commit ad8304f7a8
12 changed files with 143 additions and 134 deletions

View file

@ -61,6 +61,14 @@ function tab_initialize_cli() {
textarea.val(cli_history.next());
});
// handle smaller resolutions
if (screen.height <= 600) {
$('div.tab-cli .window').height(200);
}
// apply dynamic width to the textarea element according to cli window width (minus padding and border width)
$('div.tab-cli textarea').width($('div.tab-cli .window').outerWidth() - 7);
// give input element user focus
$('.tab-cli textarea').focus();