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
bee798cf
Kaydet (Commit)
bee798cf
authored
Eyl 28, 2012
tarafından
Michael Meeks
Kaydeden (comit)
Markus Mohrhard
Eyl 28, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
improve conditional formatting height calculations.
Change-Id: If5080892b820d268ffef22111d0caee217586b56
üst
9cce6493
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
21 deletions
+16
-21
condformatdlg.cxx
sc/source/ui/condformat/condformatdlg.cxx
+16
-21
No files found.
sc/source/ui/condformat/condformatdlg.cxx
Dosyayı görüntüle @
bee798cf
...
...
@@ -511,30 +511,25 @@ void ScCondFrmtEntry::HideColorScaleElements()
void
ScCondFrmtEntry
::
SetHeight
()
{
if
(
mbActive
)
long
nPad
=
LogicToPixel
(
Size
(
42
,
2
),
MapMode
(
MAP_APPFONT
)).
getHeight
();
// Calculate maximum height we need from visible widgets
sal_uInt16
nChildren
=
GetChildCount
();
long
nMaxHeight
=
0
;
for
(
sal_uInt16
i
=
0
;
i
<
nChildren
;
i
++
)
{
Size
aSize
=
GetSizePixel
();
switch
(
meType
)
{
case
CONDITION
:
case
FORMULA
:
aSize
.
Height
()
=
120
;
break
;
case
COLORSCALE
:
aSize
.
Height
()
=
200
;
break
;
case
DATABAR
:
aSize
.
Height
()
=
200
;
break
;
default
:
break
;
}
SetSizePixel
(
aSize
);
Window
*
pChild
=
GetChild
(
i
);
if
(
!
pChild
||
!
pChild
->
IsVisible
())
continue
;
Point
aPos
=
pChild
->
GetPosPixel
();
Size
aSize
=
pChild
->
GetSizePixel
();
nMaxHeight
=
std
::
max
(
aPos
.
Y
()
+
aSize
.
Height
(),
nMaxHeight
);
}
else
Size
aSize
=
GetSizePixel
();
if
(
nMaxHeight
>
0
)
{
Size
aSize
=
GetSizePixel
();
aSize
.
Height
()
=
40
;
aSize
.
Height
()
=
nMaxHeight
+
nPad
;
SetSizePixel
(
aSize
);
}
}
...
...
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