Kaydet (Commit) 087fcc43 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#68600 limit comment width

Change-Id: I7060ae18a98e0793a936834b398f1e232d336672
üst 3703e398
...@@ -626,7 +626,6 @@ bool SfxDocumentInfoItem::PutValue( const Any& rVal, sal_uInt8 nMemberId ) ...@@ -626,7 +626,6 @@ bool SfxDocumentInfoItem::PutValue( const Any& rVal, sal_uInt8 nMemberId )
return bRet; return bRet;
} }
SfxDocumentDescPage::SfxDocumentDescPage( Window * pParent, const SfxItemSet& rItemSet ) SfxDocumentDescPage::SfxDocumentDescPage( Window * pParent, const SfxItemSet& rItemSet )
: SfxTabPage(pParent, "DescriptionInfoPage", "sfx/ui/descriptioninfopage.ui", rItemSet) : SfxTabPage(pParent, "DescriptionInfoPage", "sfx/ui/descriptioninfopage.ui", rItemSet)
, m_pInfoItem ( NULL ) , m_pInfoItem ( NULL )
...@@ -636,9 +635,10 @@ SfxDocumentDescPage::SfxDocumentDescPage( Window * pParent, const SfxItemSet& rI ...@@ -636,9 +635,10 @@ SfxDocumentDescPage::SfxDocumentDescPage( Window * pParent, const SfxItemSet& rI
get(m_pThemaEd, "subject"); get(m_pThemaEd, "subject");
get(m_pKeywordsEd, "keywords"); get(m_pKeywordsEd, "keywords");
get(m_pCommentEd, "comments"); get(m_pCommentEd, "comments");
m_pCommentEd->set_width_request(m_pKeywordsEd->get_preferred_size().Width());
m_pCommentEd->set_height_request(m_pCommentEd->GetTextHeight() * 16);
} }
SfxTabPage *SfxDocumentDescPage::Create(Window *pParent, const SfxItemSet &rItemSet) SfxTabPage *SfxDocumentDescPage::Create(Window *pParent, const SfxItemSet &rItemSet)
{ {
return new SfxDocumentDescPage(pParent, rItemSet); return new SfxDocumentDescPage(pParent, rItemSet);
......
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