correct old resource link, bugfix for chrome 38M which for unknown reason adjusts element scroll on select element value change

pull/3/head
cTn 10 years ago
parent 437fbe2cd0
commit 296a925494

@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"minimum_chrome_version": "36", "minimum_chrome_version": "36",
"version": "0.54", "version": "0.54.1",
"author": "cTn", "author": "cTn",
"name": "Baseflight - Configurator", "name": "Baseflight - Configurator",

@ -2,7 +2,7 @@
<div class="leftWrapper"> <div class="leftWrapper">
<div class="groupTitle" i18n="configurationMixer"></div> <div class="groupTitle" i18n="configurationMixer"></div>
<div class="mixerPreview"> <div class="mixerPreview">
<img src="./images/motor_order/custom.svg" /> <img src="./resources/motor_order/custom.svg" />
<select class="mixerList"> <select class="mixerList">
<!-- list generated here --> <!-- list generated here -->
</select> </select>

@ -2,7 +2,7 @@
TABS.configuration = {}; TABS.configuration = {};
TABS.configuration.initialize = function (callback) { TABS.configuration.initialize = function (callback, scrollPosition) {
var self = this; var self = this;
if (GUI.active_tab != 'configuration') { if (GUI.active_tab != 'configuration') {
@ -194,6 +194,11 @@ TABS.configuration.initialize = function (callback) {
// select current serial RX type // select current serial RX type
serialRX_e.val(BF_CONFIG.serialrx_type); serialRX_e.val(BF_CONFIG.serialrx_type);
// for some odd reason chrome 38+ changes scroll according to the touched select element
// i am guessing this is a bug, since this wasn't happening on 37
// code below is a temporary fix, which we will be able to remove in the future (hopefully)
$('#content').scrollTop((scrollPosition) ? scrollPosition : 0);
// fill board alignment // fill board alignment
$('input[name="board_align_roll"]').val(BF_CONFIG.board_align_roll); $('input[name="board_align_roll"]').val(BF_CONFIG.board_align_roll);
$('input[name="board_align_pitch"]').val(BF_CONFIG.board_align_pitch); $('input[name="board_align_pitch"]').val(BF_CONFIG.board_align_pitch);
@ -287,7 +292,7 @@ TABS.configuration.initialize = function (callback) {
GUI.timeout_add('waiting_for_bootup', function waiting_for_bootup() { GUI.timeout_add('waiting_for_bootup', function waiting_for_bootup() {
MSP.send_message(MSP_codes.MSP_IDENT, false, false, function () { MSP.send_message(MSP_codes.MSP_IDENT, false, false, function () {
GUI.log(chrome.i18n.getMessage('deviceReady')); GUI.log(chrome.i18n.getMessage('deviceReady'));
TABS.configuration.initialize(); TABS.configuration.initialize(false, $('#content').scrollTop());
}); });
}, 1500); // 1500 ms seems to be just the right amount of delay to prevent data request timeouts }, 1500); // 1500 ms seems to be just the right amount of delay to prevent data request timeouts
} }

Loading…
Cancel
Save