mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
responder, scroll to the bottom of the table (and not the last cell). Indeed, the last cell might be to big to be displayed and scroll to it might scroll to its top. This fixes the following bug: input 1/2/3/4/5/6/7/8, OK, up, down. We did not scroll to the bottom of the table.
20 lines
642 B
C++
20 lines
642 B
C++
#ifndef CALCULATION_SELECTABLE_TABLE_VIEW_H
|
|
#define CALCULATION_SELECTABLE_TABLE_VIEW_H
|
|
|
|
#include <escher.h>
|
|
#include "history_view_cell.h"
|
|
namespace Calculation {
|
|
|
|
class CalculationSelectableTableView : public ::SelectableTableView {
|
|
public:
|
|
CalculationSelectableTableView(Responder * parentResponder, TableViewDataSource * dataSource,
|
|
SelectableTableViewDataSource * selectionDataSource, SelectableTableViewDelegate * delegate = nullptr);
|
|
void scrollToBottom();
|
|
void scrollToCell(int i, int j) override;
|
|
void scrollToSubviewOfTypeOfCellAtLocation(HistoryViewCellDataSource::SubviewType subviewType, int i, int j);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|