Skip to content
Snippets Groups Projects
Commit 3ecb3f16 authored by Jan-Christoph Borchardt's avatar Jan-Christoph Borchardt
Browse files

Merge pull request #11929 from owncloud/fix-db-center

fixes not centered database chooser on setup page
parents 0de9368a 32de664c
No related branches found
No related tags found
No related merge requests found
......@@ -103,4 +103,18 @@ $(document).ready(function() {
t('core', 'Strong password')
]
});
// centers the database chooser if it is too wide
if($('#databaseBackend').width() > 300) {
// this somehow needs to wait 250 milliseconds
// otherwise it gets overwritten
setTimeout(function(){
// calculate negative left margin
// half of the difference of width and default bix width of 300
// add 10 to clear left side padding of button group
var leftMargin = (($('#databaseBackend').width() - 300) / 2 + 10 ) * -1;
$('#databaseBackend').css('margin-left', Math.floor(leftMargin) + 'px');
}, 250);
}
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment