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

Re: Bug: Suboptimal elements placement in Repo URL dialog

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Wed, 14 Apr 2010 19:41:01 +0200

On 14.04.2010 12:34, Dmitry wrote:
> Here's an untested patch. It calls CDC::GetTextExtent() to find out
> the text size and adjusts the label and the control on the right
> accordingly.

Committed in r19237 with some tweaks:
* the adjustment of the controls must be done before anchoring them in
the dialog (i.e., before the 'AddAnchor()' calls).
* the dc to find the text extent has to be used from the parent window,
otherwise the dc is not valid and the GetTextExtent function fails

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2582618
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-04-14 19:41:07 CEST

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.