dock_pane and toolbar bug fix
fixed bug in dock_pane caption drawing function (used a workaround that hide the caption when the dock_pane width become too small) fixed small bug in toolbar
This commit is contained in:
parent
e6b0332bad
commit
4dd1c0c7ef
@ -146,7 +146,8 @@ namespace nana
|
||||
|
||||
//draw caption
|
||||
auto text = to_wstring(API::window_caption(window_handle_));
|
||||
text_rd_->render({ 3, 1 }, text.data(), text.size(), graph.size().width - 20, paint::text_renderer::mode::truncate_with_ellipsis);
|
||||
if((graph.size().width > 20) && (graph.size().width - 20 > 10))
|
||||
text_rd_->render({ 3, 1 }, text.data(), text.size(), graph.size().width - 20, paint::text_renderer::mode::truncate_with_ellipsis);
|
||||
|
||||
//draw x button
|
||||
auto r = _m_button_area();
|
||||
|
@ -104,6 +104,7 @@ namespace nana
|
||||
delete ptr;
|
||||
|
||||
cont_.clear();
|
||||
right_ = npos;
|
||||
}
|
||||
|
||||
|
||||
@ -683,6 +684,7 @@ namespace nana
|
||||
if(m && (m->textout != show))
|
||||
{
|
||||
m->textout = show;
|
||||
m->pixels = 0; //force width calculation
|
||||
API::refresh_window(this->handle());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user