mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-27 01:19:52 -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());
|
common.Settings.ChangeResultFont($("#changefont").val());
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$(window).bind("resize", function()
|
|
||||||
{
|
|
||||||
$("#searchresults").css("height", window.innerHeight - 200);
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#searchresults").css("height", window.innerHeight - 200);
|
|
||||||
|
|
||||||
$("#result").sortable({
|
$("#result").sortable({
|
||||||
handle: ".p-handle"
|
handle: ".p-handle"
|
||||||
@ -66,8 +59,13 @@ require(["jquery", "db", "common", "reference", "jquery.cookie", "jquery.ui"],
|
|||||||
common.Settings.Load();
|
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);
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
18
js/main.js
18
js/main.js
@ -41,13 +41,6 @@ require(["jquery", "db", "common", "reference", "jquery.cookie", "jquery.ui"],
|
|||||||
common.Settings.ChangeResultFont($("#changefont").val());
|
common.Settings.ChangeResultFont($("#changefont").val());
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$(window).bind("resize", function()
|
|
||||||
{
|
|
||||||
$("#searchresults").css("height", window.innerHeight - 200);
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#searchresults").css("height", window.innerHeight - 200);
|
|
||||||
|
|
||||||
$("#result").sortable({
|
$("#result").sortable({
|
||||||
handle: ".p-handle"
|
handle: ".p-handle"
|
||||||
@ -66,8 +59,15 @@ require(["jquery", "db", "common", "reference", "jquery.cookie", "jquery.ui"],
|
|||||||
common.Settings.Load();
|
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