mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-29 08:44:40 +02:00
Fix horizontal bar showing issue while resizing document list's height
Take into account vertical scrollbar when resizing document list. Fix #12191, close #12192
This commit is contained in:
parent
6a801cc0a4
commit
d3b630841e
@ -389,6 +389,12 @@ void VerticalFileSwitcherListView::resizeColumns(int totalWidth)
|
||||
ListView_SetColumnWidth(_hSelf, ++colIndex, pathWidthDyn);
|
||||
}
|
||||
|
||||
const auto style = ::GetWindowLongPtr(_hSelf, GWL_STYLE);
|
||||
if ((style & WS_VSCROLL) == WS_VSCROLL)
|
||||
{
|
||||
totalColWidthDynExceptName += ::GetSystemMetrics(SM_CXVSCROLL);
|
||||
}
|
||||
|
||||
ListView_SetColumnWidth(_hSelf, 0, totalWidth - totalColWidthDynExceptName);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user