Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
c7e7160f
Kaydet (Commit)
c7e7160f
authored
Tem 09, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Calc optimal size of *dropdown* metricboxes similar to normal dropdowns
Change-Id: I6f79594cb01d9577c66ec5897459c37513cd35f3
üst
942501b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
field.cxx
vcl/source/control/field.cxx
+20
-2
No files found.
vcl/source/control/field.cxx
Dosyayı görüntüle @
c7e7160f
...
...
@@ -1005,7 +1005,16 @@ NumericBox::NumericBox( Window* pParent, const ResId& rResId ) :
Size
NumericBox
::
CalcMinimumSize
()
const
{
return
calcMinimumSize
(
*
this
,
*
this
);
Size
aRet
(
calcMinimumSize
(
*
this
,
*
this
));
if
(
IsDropDownBox
())
{
Size
aComboSugg
(
ComboBox
::
CalcMinimumSize
());
aRet
.
Width
()
=
std
::
max
(
aRet
.
Width
(),
aComboSugg
.
Width
());
aRet
.
Height
()
=
std
::
max
(
aRet
.
Height
(),
aComboSugg
.
Height
());
}
return
aRet
;
}
// -----------------------------------------------------------------------
...
...
@@ -1948,7 +1957,16 @@ MetricBox::MetricBox( Window* pParent, const ResId& rResId ) :
Size
MetricBox
::
CalcMinimumSize
()
const
{
return
calcMinimumSize
(
*
this
,
*
this
);
Size
aRet
(
calcMinimumSize
(
*
this
,
*
this
));
if
(
IsDropDownBox
())
{
Size
aComboSugg
(
ComboBox
::
CalcMinimumSize
());
aRet
.
Width
()
=
std
::
max
(
aRet
.
Width
(),
aComboSugg
.
Width
());
aRet
.
Height
()
=
std
::
max
(
aRet
.
Height
(),
aComboSugg
.
Height
());
}
return
aRet
;
}
// -----------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment