* Reset the reflow process to start on the next UI tick. */
| 108 | * Reset the reflow process to start on the next UI tick. |
| 109 | */ |
| 110 | void TextfileWindow::ReflowContent() |
| 111 | { |
| 112 | /* Minimum number of lines that will be flowed. */ |
| 113 | if (this->num_lines == 0) this->num_lines = std::size(this->lines); |
| 114 | |
| 115 | auto it = this->GetIteratorFromPosition(this->vscroll->GetPosition()); |
| 116 | |
| 117 | auto adapter = AlternatingView{this->lines, it}; |
| 118 | this->reflow_iter = adapter.begin(); |
| 119 | this->reflow_end = adapter.end(); |
| 120 | } |
| 121 | |
| 122 | /* virtual */ void TextfileWindow::UpdateWidgetSize(WidgetID widget, Dimension &size, [[maybe_unused]] const Dimension &padding, [[maybe_unused]] Dimension &fill, [[maybe_unused]] Dimension &resize) |
| 123 | { |
no test coverage detected