Loads qrcode extension on demand now.

This commit is contained in:
Lars Jung 2012-10-13 21:30:41 +02:00
parent 787d37853b
commit 17ad8d0632
5 changed files with 37 additions and 13 deletions

View file

@ -78,15 +78,13 @@ modulejs.define('ext/preview-txt', ['_', '$', 'core/settings', 'core/resource',
adjustSize = function () {
var rect = $(window).fracs('viewport'),
var $window = $(window),
$container = $('#pv-txt-content'),
margin = 20,
barheight = 31;
$container.css({
// width: rect.width - 2 * margin,
height: rect.height - 2 * margin - barheight - 32,
// left: margin,
height: $window.height() - 2 * margin - barheight - 32,
top: margin
});
},