mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-25 16:29:49 -04:00
- fixed window resize issue cause by loading results
This commit is contained in:
parent
0930633d04
commit
eeb6fdd9d0
@ -41,13 +41,6 @@ require(["jquery", "db", "common", "reference", "jquery.cookie", "jquery.ui"],
|
||||
common.Settings.ChangeResultFont($("#changefont").val());
|
||||
return false;
|
||||
});
|
||||
$(window).bind("resize", function()
|
||||
{
|
||||
$("#searchresults").css("height", window.innerHeight - 200);
|
||||
return false;
|
||||
});
|
||||
|
||||
$("#searchresults").css("height", window.innerHeight - 200);
|
||||
|
||||
$("#result").sortable({
|
||||
handle: ".p-handle"
|
||||
@ -66,8 +59,13 @@ require(["jquery", "db", "common", "reference", "jquery.cookie", "jquery.ui"],
|
||||
common.Settings.Load();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
// you need to do this last, otherwise the settings load resets the window height.
|
||||
$(window).bind("resize", function()
|
||||
{
|
||||
$("#searchresults").css("height", window.innerHeight - 200);
|
||||
return false;
|
||||
});
|
||||
|
||||
$("#searchresults").css("height", window.innerHeight - 200);
|
||||
});
|
||||
});
|
||||
|
22
js/main.js
22
js/main.js
@ -41,13 +41,6 @@ require(["jquery", "db", "common", "reference", "jquery.cookie", "jquery.ui"],
|
||||
common.Settings.ChangeResultFont($("#changefont").val());
|
||||
return false;
|
||||
});
|
||||
$(window).bind("resize", function()
|
||||
{
|
||||
$("#searchresults").css("height", window.innerHeight - 200);
|
||||
return false;
|
||||
});
|
||||
|
||||
$("#searchresults").css("height", window.innerHeight - 200);
|
||||
|
||||
$("#result").sortable({
|
||||
handle: ".p-handle"
|
||||
@ -66,8 +59,15 @@ require(["jquery", "db", "common", "reference", "jquery.cookie", "jquery.ui"],
|
||||
common.Settings.Load();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
// you need to do this last, otherwise the settings load resets the window height.
|
||||
$(window).bind("resize", function()
|
||||
{
|
||||
$("#searchresults").css("height", window.innerHeight - 200);
|
||||
return false;
|
||||
});
|
||||
|
||||
$("#searchresults").css("height", window.innerHeight - 200);
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user