Minor modifications.
This commit is contained in:
parent
55ba530dc4
commit
4cbd1b2fef
@ -10,7 +10,7 @@ div.ov_panel_set_right_container div.ov_panel_set_menu
|
||||
|
||||
div.ov_panel_set_menu div.ov_panel_set_menu_button
|
||||
{
|
||||
padding: 6px;
|
||||
padding: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
@ -58,6 +58,9 @@ OV.Navigator = class
|
||||
this.callbacks = callbacks;
|
||||
|
||||
this.panelSet.Init ({
|
||||
onShowHidePanels : (show) => {
|
||||
|
||||
},
|
||||
onResize : () => {
|
||||
if (this.panelSet.IsPanelsVisible ()) {
|
||||
this.splitterDiv.show ();
|
||||
|
||||
@ -101,13 +101,14 @@ OV.PanelSet = class
|
||||
if (this.panelsVisible) {
|
||||
this.contentDiv.show ();
|
||||
this.parentDiv.outerWidth (this.menuDiv.outerWidth (true) + this.panelsPrevWidth, true);
|
||||
this.callbacks.onResize ();
|
||||
} else {
|
||||
this.panelsPrevWidth = this.contentDiv.outerWidth (true);
|
||||
this.contentDiv.hide ();
|
||||
this.parentDiv.outerWidth (this.menuDiv.outerWidth (true), true);
|
||||
this.callbacks.onResize ();
|
||||
this.contentDiv.hide ();
|
||||
}
|
||||
|
||||
this.callbacks.onShowHidePanels (this.panelsVisible);
|
||||
this.callbacks.onResize ();
|
||||
}
|
||||
|
||||
ShowPanel (panel)
|
||||
|
||||
@ -13,11 +13,24 @@ OV.Sidebar = class
|
||||
this.panelSet.ShowPanel (this.detailsPanel);
|
||||
}
|
||||
|
||||
IsPanelsVisible ()
|
||||
{
|
||||
return this.panelSet.IsPanelsVisible ();
|
||||
}
|
||||
|
||||
ShowPanels (show)
|
||||
{
|
||||
this.panelSet.ShowPanels (show);
|
||||
}
|
||||
|
||||
Init (settings, callbacks)
|
||||
{
|
||||
this.callbacks = callbacks;
|
||||
|
||||
this.panelSet.Init ({
|
||||
onShowHidePanels : (show) => {
|
||||
this.callbacks.onShowHidePanels (show);
|
||||
},
|
||||
onResize : () => {
|
||||
if (this.panelSet.IsPanelsVisible ()) {
|
||||
//this.splitterDiv.show ();
|
||||
|
||||
@ -58,15 +58,13 @@ OV.Website = class
|
||||
|
||||
let navigatorWidth = 0;
|
||||
let sidebarWidth = 0;
|
||||
let safetyMargin = 0;
|
||||
if (!OV.IsSmallWidth ()) {
|
||||
navigatorWidth = this.navigator.GetWidth ();
|
||||
sidebarWidth = this.sidebar.GetWidth ();
|
||||
safetyMargin = 1;
|
||||
}
|
||||
|
||||
let contentWidth = windowWidth - navigatorWidth - sidebarWidth - safetyMargin;
|
||||
let contentHeight = windowHeight - headerHeight - safetyMargin;
|
||||
let contentWidth = windowWidth - navigatorWidth - sidebarWidth;
|
||||
let contentHeight = windowHeight - headerHeight;
|
||||
|
||||
this.parameters.sidebarDiv.outerHeight (contentHeight, true);
|
||||
this.parameters.introDiv.outerHeight (contentHeight, true);
|
||||
@ -510,9 +508,6 @@ OV.Website = class
|
||||
{
|
||||
this.sidebar.Init (this.settings,
|
||||
{
|
||||
onResize : () => {
|
||||
this.Resize ();
|
||||
},
|
||||
onBackgroundColorChange : (newVal) => {
|
||||
this.settings.backgroundColor = newVal;
|
||||
this.settings.SaveToCookies (this.cookieHandler);
|
||||
@ -529,6 +524,12 @@ OV.Website = class
|
||||
},
|
||||
onThemeChange : (newVal) => {
|
||||
this.SwitchTheme (newVal, true);
|
||||
},
|
||||
onResize : () => {
|
||||
this.Resize ();
|
||||
},
|
||||
onShowHidePanels : (show) => {
|
||||
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user