Bug Fix #68: Undetected Pages dialog scale

Automatically scales the undetected page preview based on the browser
size.
This commit is contained in:
Gary Sharp
2014-07-28 17:33:49 +10:00
parent 2d8dcb6900
commit 7062a40dfb
5 changed files with 90 additions and 73 deletions
@@ -70,12 +70,20 @@
var urlImporterUndetectedDelete = '@(Url.Action(MVC.API.DocumentTemplate.ImporterUndetectedDelete()))/';
var $undetectedPageDialog = $('#undetectedPageDialog').dialog({
modal: true,
height: 850,
width: 800,
resizable: false,
autoOpen: false
});
function resizeUndetectedPageDialog() {
var dialogHeight = Math.min($(window).height() - 120, 805);
$undetectedPageDialog.height(dialogHeight);
$undetectedPageDialog.find('.pagePreview').height(dialogHeight - 105);
}
resizeUndetectedPageDialog();
$(window).resize(resizeUndetectedPageDialog);
$dialogRemove = $('#dialogRemove').dialog({
resizable: false,
height: 140,