]> git.saurik.com Git - wxWidgets.git/commit
Better sizing in wxDataViewSpinRenderer and wxDataViewChoiceRenderer.
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 13 Jul 2011 08:32:17 +0000 (08:32 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 13 Jul 2011 08:32:17 +0000 (08:32 +0000)
commita1c9e7d14361e300b628757d59ba8aee8b008e3c
tree9ebe1eeee2c809b8073c22f96471e9a42587ec7f
parent7ecc7eb6befabc80362afe9b98a494688576fcaf
Better sizing in wxDataViewSpinRenderer and wxDataViewChoiceRenderer.

Their GetSize() method used hardcoded size of (80,16). Instead, use
GetTextExtent() to compute the size from content, as should be done. Add
some extra room for editor control's extra parts. The space needed isn't
computed exactly, as that would be quite convoluted (and in the end,
most likely not 100% accurate even then), using a simple approximation
instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/datavcmn.cpp