diff options
author | Cao Cuong Ngo <cao.cuong.ngo@gmail.com> | 2013-06-17 10:35:37 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2013-09-02 13:51:47 +0200 |
commit | 5118e421e4d3eef3a1ff7c653d4bf5dd200b440e (patch) | |
tree | 63d2634e42cd0e1250b3845d3a5a3af0c84826c9 /sfx2 | |
parent | 145aa21ec2b446387e361f4a082e873628fb3f25 (diff) |
CMIS properties dialog
Fixed type width
Change-Id: I0afbfcb33539533269f2867972a8ab71e6dadef7
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 6008461ba4fc..6da79c798bbc 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -2211,7 +2211,7 @@ void CmisPropertiesYesNoButton::Resize() // struct CmisPropertyLine --------------------------------------------- CmisPropertyLine::CmisPropertyLine( Window* pParent ) : - m_aName ( pParent, SfxResId( SFX_CMIS_PROPERTY_TYPE ) ), + m_aName ( pParent, SfxResId( SFX_CMIS_PROPERTY_NAME ) ), m_aType ( pParent, SfxResId( SFX_CMIS_PROPERTY_TYPE ) ), m_aValueEdit ( pParent, SfxResId( SFX_CMIS_ED_PROPERTY_VALUE ), this ), m_aDateField ( pParent, SfxResId( SFX_CMIS_FLD_DATE), this), @@ -2329,7 +2329,8 @@ void CmisPropertiesWindow::InitControls( HeaderBar* pHeaderBar, const ScrollBar* const long nOffset = 4; const long nScrollBarWidth = pScrollBar->GetSizePixel().Width(); const long nButtonWidth = nScrollBarWidth + nOffset; - long nTypeWidth = m_aType.CalcMinimumSize().Width() + ( 2 * nOffset ); + long nTypeWidth = m_aValueEdit.CalcMinimumSizeForText( CMIS_TYPE_DATETIME ).Width( ) + + ( 2 * nOffset ); long nFullWidth = pHeaderBar->GetSizePixel().Width(); long nItemWidth = ( nFullWidth - nTypeWidth - nButtonWidth ) / 2; pHeaderBar->SetItemSize( HI_NAME, nItemWidth ); |