| 45 | } |
| 46 | |
| 47 | void Viewport::HandleSizeChange() { |
| 48 | auto allocation = GetAllocation(); |
| 49 | |
| 50 | m_children_viewport->SetSize( |
| 51 | sf::Vector2f( |
| 52 | std::floor( allocation.size.x + .5f ), |
| 53 | std::floor( allocation.size.y + .5f ) |
| 54 | ) |
| 55 | ); |
| 56 | } |
| 57 | |
| 58 | void Viewport::HandleAbsolutePositionChange() { |
| 59 | auto position = Widget::GetAbsolutePosition(); |