diff --git a/client/windows/CMapOverview.cpp b/client/windows/CMapOverview.cpp index 4db99c772..ffa7aeb03 100644 --- a/client/windows/CMapOverview.cpp +++ b/client/windows/CMapOverview.cpp @@ -49,9 +49,6 @@ CMapOverview::CMapOverview(std::string mapName, std::string fileName, std::strin OBJ_CONSTRUCTION_CAPTURING_ALL_NO_DISPOSE; - const JsonNode config(JsonPath::builtin("config/widgets/mapOverview.json")); - pos = Rect(0, 0, config["items"][0]["rect"]["w"].Integer(), config["items"][0]["rect"]["h"].Integer()); - widget = std::make_shared(*this); updateShadow(); @@ -179,6 +176,10 @@ CMapOverviewWidget::CMapOverviewWidget(CMapOverview& parent): build(config); + if(auto w = widget("background")) + { + p.pos = w->pos; + } if(auto w = widget("fileName")) { w->setText(p.fileName);