Kaydet (Commit) 1ccbb620 authored tarafından Caolán McNamara's avatar Caolán McNamara

tabpages size req not factoring in border width

Change-Id: Ie7396b63a64e89bb7aa7c0e284faab7ed380c4c1
üst 158aee9a
......@@ -29,6 +29,7 @@
#include "vcl/tabpage.hxx"
#include "vcl/tabctrl.hxx"
#include "vcl/controllayout.hxx"
#include "vcl/layout.hxx"
#include "vcl/lstbox.hxx"
#include "controldata.hxx"
......@@ -2219,7 +2220,7 @@ Size TabControl::calculateRequisition() const
if (!pPage)
continue;
Size aPageSize(pPage->GetOptimalSize());
Size aPageSize(VclContainer::getLayoutRequisition(*pPage));
if (aPageSize.Width() > aOptimalPageSize.Width())
aOptimalPageSize.Width() = aPageSize.Width();
......
......@@ -210,7 +210,7 @@ bool TabPage::isLayoutEnabled() const
Size TabPage::GetOptimalSize() const
{
if (isLayoutEnabled())
return GetWindow(WINDOW_FIRSTCHILD)->GetOptimalSize();
return VclContainer::getLayoutRequisition(*GetWindow(WINDOW_FIRSTCHILD));
return getLegacyBestSizeForChildren(*this);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment