From 14a6d94e1f4a5df78e446efd327a6f5c15aaeab9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 18 Sep 2012 13:32:31 +0100 Subject: calculate ideal tab size not current one Change-Id: Ia57366baafb7bb5ecdd8b7ab3d1f52b6438d165e --- vcl/source/control/tabctrl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source/control') diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index fef793d10699..a3c6ff6d7a8b 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -2200,7 +2200,7 @@ Size TabControl::calculateRequisition() const TabControl* pThis = const_cast(this); sal_uInt16 nPos = it - mpTabCtrlData->maItemList.begin(); - Rectangle aTabRect = pThis->ImplGetTabRect(nPos, aPageSize.Width(), aPageSize.Height()); + Rectangle aTabRect = pThis->ImplGetTabRect(nPos, LONG_MAX, LONG_MAX); if (aTabRect.Bottom() > nTabLabelsBottom) nTabLabelsBottom = aTabRect.Bottom(); -- cgit