From 500aa030ae8b5b456c041d5f98a2878d11e42118 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Fri, 9 Oct 2015 00:18:27 +0800 Subject: [PATCH] fix an issue that weight is ignored by dockpane --- source/gui/place.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gui/place.cpp b/source/gui/place.cpp index 8654f3aa..9ef4986b 100644 --- a/source/gui/place.cpp +++ b/source/gui/place.cpp @@ -2436,9 +2436,9 @@ namespace nana std::vector> adjusted_children; for (auto & child : children) { - //ignores weight if it is a dockpane auto dockpn = new div_dockpane(std::move(child->name), this, child->dir); dockpn->div_owner = child->div_owner; + dockpn->weight = child->weight; adjusted_children.emplace_back(dockpn); }