[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Progress dialog last line somtimes obscured by scroll bar

From: Simon Large <simon_at_skirridsystems.co.uk>
Date: 2006-02-14 12:06:36 CET

Simon Large wrote:
> Hi Stefan,
>
> I know I have mentioned this before, but I think I may have found the
> cause this time.
>
> At the end of an update, if the resizing in the first 30 rows causes a
> horizontal scrollbar to appear, it obscures the final 'Completed: At
> revision N' line. Well in Win2K it does anyway.
>
> Looking in SVNProgressDlg.cpp I see at line 972:
>
> m_ProgList.EnsureVisible(m_ProgList.GetItemCount(), FALSE);
>
> I think that should be:
>
> m_ProgList.EnsureVisible(m_ProgList.GetItemCount() - 1, FALSE);
>
> assuming the list is zero-based.
>
> or possibly more robustly:
>
> int nCount = m_ProgList.GetItemCount();
> if (nCount > 0)
> m_ProgList.EnsureVisible(nCount - 1, FALSE);
>
> which looks spookily like the example in MSDN.

I forgot to attach this test script which reproduces the problem on
Win2K and XP.

Save the file in C:\Temp\Update
Rename as .bat and run it.
TSVN->Update on the created wc.
Update to r1, then update to see it all again ;-)

Simon

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org

if exist repos rd /s/q repos
if exist wc rd /s/q wc
md repos
md wc
svnadmin create repos
:: Sorry about the absolute path here
svn co file:///c:/temp/update/repos wc
cd wc
md SubDir
svn add SubDir
svn ci -m "r1" .
cd SubDir
echo Text > VeryLongFileNameWithinTheWorkingCopyToForceTheScrollBarToAppear.txt
echo Text > Short.txt
svn add *.txt
md SubSub
cd SubSub
for /L %%N in (1,1,32) do echo Test%%N > ABC%%N.txt
cd..
svn add SubSub
svn ci -m "r2" .
cd..
svn update -r1
cd..

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Feb 14 12:05:45 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.