Several Bug Fixes and Mantainance

This commit is contained in:
Luis Fernando Molina committed 2020-01-15 12:25:49 +01:00
1 parent 6ec6014aab
commit dbd058bd21
6 files changed
+65 -45

No files matched your search

+18 -8
View File
@@ -8,18 +8,16 @@ function newPlotterPanel () {
let thisObject = {
fitFunction: undefined,
onRecordChange: onRecordChange,
container: undefined,
onRecordChange: onRecordChange,
draw: draw,
getContainer: getContainer,
initialize: initialize
initialize: initialize,
finalize: finalize
}
let container = newContainer()
container.initialize()
thisObject.container = container
container.frame.containerName = 'Plotter Panel'
thisObject.container = newContainer()
thisObject.container.initialize('Plotter Panel')
let heightFactor = 1
let currentRecord
@@ -28,9 +26,21 @@ function newPlotterPanel () {
return thisObject
function finalize () {
thisObject.container.finalize()
thisObject.container = undefined
thisObject.fitFunction = undefined
heightFactor = undefined
currentRecord = undefined
panelTabButton.finalize()
panelTabButton = undefined
panelNode = undefined
}
function initialize (pPanelNode) {
panelNode = pPanelNode
container.frame.containerName = panelNode.name
thisObject.container.frame.containerName = panelNode.name
thisObject.container.frame.width = UI_PANEL.WIDTH.NORMAL
thisObject.container.frame.height = UI_PANEL.HEIGHT.NORMAL