* First implementation, functional First implementation, functional. Only 2 lines of code. * Added min 200px, max 500px Added validation to constrait the panel to have at least a minimum of 200px and a maximum of 500px. * Update project.js Change the pref key to facetsHistoryPanelWidth. * Change to ui.browsing.facetsHistoryPanelWidth Change ui.facetsHistoryPanelWidth to ui.browsing.facetsHistoryPanelWidth. Co-authored-by: Antonin Delpeuch <antonin@delpeuch.eu>
This commit is contained in:
parent
6e472376aa
commit
fd3bfbea75
@ -63,7 +63,11 @@ Refine.reportException = function(e) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function resize() {
|
function resize() {
|
||||||
var leftPanelWidth = 300;
|
var leftPanelWidth = JSON.parse(Refine.getPreference("ui.browsing.facetsHistoryPanelWidth", 300));
|
||||||
|
if(typeof leftPanelWidth != "number" || leftPanelWidth < 200 || leftPanelWidth > 500) {
|
||||||
|
leftPanelWidth = 300;
|
||||||
|
}
|
||||||
|
|
||||||
var width = $(window).width();
|
var width = $(window).width();
|
||||||
var top = $("#header").outerHeight();
|
var top = $("#header").outerHeight();
|
||||||
var height = $(window).height() - top;
|
var height = $(window).height() - top;
|
||||||
|
Loading…
Reference in New Issue
Block a user