mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 07:26:49 +01:00
add splitter widget
* add horizontal/vertical cursor * possibildiade to resize game map with the new splitter widget * fix reload warnings in textmessage
This commit is contained in:
@@ -116,6 +116,8 @@ TilePtr UIMap::getTile(const Point& mousePos)
|
||||
|
||||
void UIMap::onGeometryChange(const Rect& oldRect, const Rect& newRect)
|
||||
{
|
||||
UIWidget::onGeometryChange(oldRect, newRect);
|
||||
|
||||
Rect mapRect = getChildrenRect().expanded(-1);
|
||||
Size mapSize = m_mapView->getVisibleSize();
|
||||
mapSize.scale(mapRect.size(), Fw::KeepAspectRatio);
|
||||
|
||||
Reference in New Issue
Block a user