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:
unodgs 2010-10-26 18:47:59 +00:00
parent 6713f9d15e
commit 7f724baafe

View file

@ -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);