summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2008-01-14 12:05:39 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2008-01-14 12:05:39 +0000
commitfaaa915f424286484d9ee2d3d85a48654dc41264 (patch)
tree016892d3c6d6d3b475bb284de6a49739ed604f96 /vcl/source
parent613df5c833bedd16bc4e7053050f49155e4c2cc5 (diff)
INTEGRATION: CWS awtfixes1 (1.38.10); FILE MERGED
2007/11/29 19:03:30 fridrich_strba 1.38.10.3: RESYNC: (1.39-1.41); FILE MERGED 2007/08/17 14:46:35 mmeeks 1.38.10.2: RESYNC: (1.38-1.39); FILE MERGED 2007/08/17 13:52:57 mmeeks 1.38.10.1: Issue number: i#80754# Submitted by: mmeeks Start of virtual method for sizing ...
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/control/lstbox.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx
index ce7f9ade7f75..8c3317d992d7 100644
--- a/vcl/source/control/lstbox.cxx
+++ b/vcl/source/control/lstbox.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: lstbox.cxx,v $
*
- * $Revision: 1.41 $
+ * $Revision: 1.42 $
*
- * last change: $Author: hr $ $Date: 2007-11-02 12:51:57 $
+ * last change: $Author: ihi $ $Date: 2008-01-14 13:05:39 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -1295,6 +1295,18 @@ Size ListBox::CalcMinimumSize() const
// -----------------------------------------------------------------------
+Size ListBox::GetOptimalSize(WindowSizeType eType) const
+{
+ switch (eType) {
+ case WINDOWSIZE_MINIMUM:
+ return CalcMinimumSize();
+ default:
+ return Control::GetOptimalSize( eType );
+ }
+}
+
+// -----------------------------------------------------------------------
+
Size ListBox::CalcAdjustedSize( const Size& rPrefSize ) const
{
Size aSz = rPrefSize;