ExpansionPanel scroll issue
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ class ExpansionPanel: public FormGroup {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
ExpansionPanel(Window * parent, const rect_t & rect):
|
ExpansionPanel(Window * parent, const rect_t & rect):
|
||||||
FormGroup(parent, rect, FORM_NO_BORDER | FORM_FORWARD_FOCUS)
|
FormGroup(parent, rect, FORM_NO_BORDER | FORM_FORWARD_FOCUS | FORWARD_SCROLL)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
@@ -115,6 +115,7 @@ void FormGroup::setFocus(uint8_t flag)
|
|||||||
if (first)
|
if (first)
|
||||||
first->setFocus(SET_FOCUS_FIRST);
|
first->setFocus(SET_FOCUS_FIRST);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SET_FOCUS_BACKWARD:
|
case SET_FOCUS_BACKWARD:
|
||||||
// TODO this test should be recursive
|
// TODO this test should be recursive
|
||||||
if (focusWindow == first || focusWindow->getParent() == first) {
|
if (focusWindow == first || focusWindow->getParent() == first) {
|
||||||
@@ -128,6 +129,7 @@ void FormGroup::setFocus(uint8_t flag)
|
|||||||
last->setFocus(SET_FOCUS_BACKWARD);
|
last->setFocus(SET_FOCUS_BACKWARD);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SET_FOCUS_FORWARD:
|
case SET_FOCUS_FORWARD:
|
||||||
// TODO this test should be recursive
|
// TODO this test should be recursive
|
||||||
if (focusWindow == last || focusWindow->getParent() == last || focusWindow->getParent()->getParent() == last) {
|
if (focusWindow == last || focusWindow->getParent() == last || focusWindow->getParent()->getParent() == last) {
|
||||||
@@ -141,6 +143,7 @@ void FormGroup::setFocus(uint8_t flag)
|
|||||||
first->setFocus(SET_FOCUS_FORWARD);
|
first->setFocus(SET_FOCUS_FORWARD);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (focusWindow == previous) {
|
if (focusWindow == previous) {
|
||||||
if (first)
|
if (first)
|
||||||
|
|||||||
Reference in New Issue
Block a user