new vfit/hfit for place

added fit-content support for button/picture/combox/label
This commit is contained in:
Jinhao
2017-03-15 23:39:39 +08:00
parent f43d54d7e2
commit f0dc62cc21
7 changed files with 340 additions and 188 deletions

View File

@@ -29,6 +29,10 @@ namespace nana{ namespace drawerbase
optional<size> measure(graph_reference graph, unsigned limit_pixels, bool limit_width) const override
{
//Button doesn't provide a support of vfit and hfit
if (limit_pixels)
return{};
wchar_t shortkey;
std::string::size_type shortkey_pos;