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
5f2825dd
Kaydet (Commit)
5f2825dd
authored
Nis 12, 2012
tarafından
Gábor Stefanik
Kaydeden (comit)
Andras Timar
Nis 12, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#34392 recompute column widths after font scale change in startcenter
üst
25c19416
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
backingwindow.cxx
framework/source/services/backingwindow.cxx
+19
-0
No files found.
framework/source/services/backingwindow.cxx
Dosyayı görüntüle @
5f2825dd
...
...
@@ -273,6 +273,8 @@ void BackingWindow::DataChanged( const DataChangedEvent& rDCEvt )
{
initBackground
();
Invalidate
();
// fdo#34392: Resize buttons to match the new text size.
Resize
();
}
}
...
...
@@ -797,6 +799,23 @@ void BackingWindow::Resize()
long
nYPos
=
maControlRect
.
Top
()
+
mnBtnTop
;
// Recompute column widths
mnTextColumnWidth
[
0
]
=
maWriterButton
.
GetTextWidth
(
maWriterButton
.
GetText
()
)
+
maButtonImageSize
.
Width
()
+
8
;
if
(
mnTextColumnWidth
[
0
]
<
maCalcButton
.
GetTextWidth
(
maCalcButton
.
GetText
()
)
+
maButtonImageSize
.
Width
()
+
8
)
mnTextColumnWidth
[
0
]
=
maCalcButton
.
GetTextWidth
(
maCalcButton
.
GetText
()
)
+
maButtonImageSize
.
Width
()
+
8
;
if
(
mnTextColumnWidth
[
0
]
<
maImpressButton
.
GetTextWidth
(
maImpressButton
.
GetText
()
)
+
maButtonImageSize
.
Width
()
+
8
)
mnTextColumnWidth
[
0
]
=
maImpressButton
.
GetTextWidth
(
maImpressButton
.
GetText
()
)
+
maButtonImageSize
.
Width
()
+
8
;
if
(
mnTextColumnWidth
[
0
]
<
maOpenButton
.
GetTextWidth
(
maOpenButton
.
GetText
()
)
+
maButtonImageSize
.
Width
()
+
26
)
mnTextColumnWidth
[
0
]
=
maOpenButton
.
GetTextWidth
(
maOpenButton
.
GetText
()
)
+
maButtonImageSize
.
Width
()
+
26
;
mnTextColumnWidth
[
1
]
=
maDrawButton
.
GetTextWidth
(
maDrawButton
.
GetText
()
)
+
maButtonImageSize
.
Width
()
+
8
;
if
(
mnTextColumnWidth
[
1
]
<
maDBButton
.
GetTextWidth
(
maDBButton
.
GetText
()
)
+
maButtonImageSize
.
Width
()
+
8
)
mnTextColumnWidth
[
1
]
=
maDBButton
.
GetTextWidth
(
maDBButton
.
GetText
()
)
+
maButtonImageSize
.
Width
()
+
8
;
if
(
mnTextColumnWidth
[
1
]
<
maMathButton
.
GetTextWidth
(
maMathButton
.
GetText
()
)
+
maButtonImageSize
.
Width
()
+
8
)
mnTextColumnWidth
[
1
]
=
maMathButton
.
GetTextWidth
(
maMathButton
.
GetText
()
)
+
maButtonImageSize
.
Width
()
+
8
;
if
(
mnTextColumnWidth
[
1
]
<
maTemplateButton
.
GetTextWidth
(
maTemplateButton
.
GetText
()
)
+
maButtonImageSize
.
Width
()
+
8
)
mnTextColumnWidth
[
1
]
=
maTemplateButton
.
GetTextWidth
(
maTemplateButton
.
GetText
()
)
+
maButtonImageSize
.
Width
()
+
8
;
maWriterButton
.
SetPosSizePixel
(
Point
(
maControlRect
.
Left
()
+
mnBtnPos
,
nYPos
),
Size
(
mnTextColumnWidth
[
0
],
maButtonImageSize
.
Height
()
)
);
maDrawButton
.
SetPosSizePixel
(
Point
(
maControlRect
.
Left
()
+
mnBtnPos
+
mnColumnWidth
[
0
],
nYPos
),
Size
(
mnTextColumnWidth
[
1
],
maButtonImageSize
.
Height
()
)
);
nYPos
+=
nBDelta
-
nDiff
;
...
...
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