mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-12 22:03:43 -06:00
GridCtrl: Fixed summary horizontal scrolling in absolute mode
git-svn-id: svn://ultimatepp.org/upp/trunk@2822 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6713f9d15e
commit
7f724baafe
1 changed files with 2 additions and 1 deletions
|
|
@ -2565,6 +2565,7 @@ void GridCtrl::Scroll()
|
|||
if(delta.cx != 0)
|
||||
{
|
||||
ScrollView(Rect(fixed_width, 0, sz.cx, fixed_height), delta.cx, 0);
|
||||
ScrollView(Rect(fixed_width, sz.cy - summary_height, sz.cx, sz.cy), delta.cx, 0);
|
||||
scrollLeftRight = true;
|
||||
}
|
||||
if(delta.cy != 0)
|
||||
|
|
@ -5555,7 +5556,7 @@ void GridCtrl::SwapDown(int cnt)
|
|||
repaint = true;
|
||||
}
|
||||
|
||||
int cy = GetSize().cy;
|
||||
int cy = GetSize().cy - bar.GetSize().cy;
|
||||
if(resize_row_mode == 0 && yp > cy)
|
||||
sby.Set(sby + yp - cy);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue