Missing invalidate
This commit is contained in:
+8
-1
@@ -28,6 +28,13 @@ class ExpansionPanelHeader: virtual public FormGroup {
|
||||
public:
|
||||
explicit ExpansionPanelHeader(ExpansionPanel * parent);
|
||||
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
std::string getName() override
|
||||
{
|
||||
return "ExpansionPanelHeader";
|
||||
}
|
||||
#endif
|
||||
|
||||
void onEvent(event_t event) override;
|
||||
|
||||
#if defined(HARDWARE_TOUCH)
|
||||
@@ -48,7 +55,7 @@ class ExpansionPanel: public FormGroup {
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
std::string getName() override
|
||||
{
|
||||
return "ExpansionPanel()";
|
||||
return "ExpansionPanel";
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
+5
@@ -111,6 +111,11 @@ class FormGroup: public FormField {
|
||||
|
||||
void addField(FormField * field, bool front = false);
|
||||
|
||||
void setLastField(FormField * field)
|
||||
{
|
||||
last = field;
|
||||
}
|
||||
|
||||
protected:
|
||||
FormField * first = nullptr;
|
||||
FormField * last = nullptr;
|
||||
|
||||
+5
-1
@@ -273,8 +273,12 @@ class Window {
|
||||
}
|
||||
else {
|
||||
coord_t maxScrollPosition = h - height();
|
||||
if (scrollPositionY > maxScrollPosition)
|
||||
if (scrollPositionY > maxScrollPosition) {
|
||||
setScrollPositionY(maxScrollPosition);
|
||||
}
|
||||
else {
|
||||
invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user