Hi all,
I probably found bug in SectionStack implementation. I am able to reproduce it on your current examples: http://www.smartclient.com/#resizeSections with modified code:
1) Close to section "Help 1"
2) Try to move section "Help 2" (by dragging section header)
=>BUG: JavaScript error with this stack trace:
12:45:36.986:TMR8:WARN:Log:TypeError: _1.items is undefined
Stack from error.stack:
SectionStack.sectionIsVisible()
SectionStack.getDragResizeTarget()
isc.$6r.dragStart()
[c]EventHandler.bubbleEvent()
[c]EventHandler.handleEvent()
[c]EventHandler.handleDragStart()
EventHandler.._handleMouseMove()
EventHandler._handleMouseMove()
EventHandler._delayedMouseMove()
[c]Class.fireCallback()
Timer._fireTimeout()
unnamed()
unnamed() @
I tested it on version: v9.0p_2014-01-01/LGPL Development Only (built 2014-01-01), FF ESR 24.4
Best regards,
Jirka
I probably found bug in SectionStack implementation. I am able to reproduce it on your current examples: http://www.smartclient.com/#resizeSections with modified code:
Code:
isc.defineClass("HelpCanvas", "Canvas").addProperties({
autoDraw: false,
padding: 10,
overflow:"auto",
contents: "<b>Severity 1</b> - Critical problem<br>System is unavailable in production or " +
"is corrupting data, and the error severely impacts the user's operations." +
"<br><br><b>Severity 2</b> - Major problem<br>An important function of the system " +
"is not available in production, and the user's operations are restricted." +
"<br><br><b>Severity 3</b> - Minor problem<br>Inability to use a function of the " +
"system occurs, but it does not seriously affect the user's operations."
});
isc.SectionStack.create({
ID: "sectionStack",
visibilityMode: "multiple",
width: 300, height: 350,
border:"1px solid blue",
sections: [
{title: "Blue Pawn", expanded: true, canCollapse: true, items: [
isc.HelpCanvas.create({ ID:"help0", autoDraw:false })
]},
{title: "Help 1", expanded: true, canCollapse: true, items: [
isc.HelpCanvas.create({ ID:"help1", autoDraw:false })
]},
{title: "Help 2", expanded: true, canCollapse: true, items: [
isc.HelpCanvas.create({ ID:"help2", autoDraw:false })
]}
]
});
isc.IButton.create({
left: 325,
width: 150,
title: "Resize Help 1",
click: "help1.setHeight(200)"
});
2) Try to move section "Help 2" (by dragging section header)
=>BUG: JavaScript error with this stack trace:
12:45:36.986:TMR8:WARN:Log:TypeError: _1.items is undefined
Stack from error.stack:
SectionStack.sectionIsVisible()
SectionStack.getDragResizeTarget()
isc.$6r.dragStart()
[c]EventHandler.bubbleEvent()
[c]EventHandler.handleEvent()
[c]EventHandler.handleDragStart()
EventHandler.._handleMouseMove()
EventHandler._handleMouseMove()
EventHandler._delayedMouseMove()
[c]Class.fireCallback()
Timer._fireTimeout()
unnamed()
unnamed() @
I tested it on version: v9.0p_2014-01-01/LGPL Development Only (built 2014-01-01), FF ESR 24.4
Best regards,
Jirka
Comment