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
383db30b
Kaydet (Commit)
383db30b
authored
Mar 30, 2018
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
aChildAllocation variable only set
Change-Id: I4a5c4e2b9c82dcaf8a48d411539a17dc0f1cfa15
üst
98c2a323
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
layout.cxx
vcl/source/window/layout.cxx
+1
-6
No files found.
vcl/source/window/layout.cxx
Dosyayı görüntüle @
383db30b
...
...
@@ -1909,7 +1909,6 @@ void VclScrolledWindow::InitScrollBars(const Size &rRequest)
void
VclScrolledWindow
::
setAllocation
(
const
Size
&
rAllocation
)
{
Size
aChildAllocation
(
rAllocation
);
Size
aChildReq
;
vcl
::
Window
*
pChild
=
get_child
();
...
...
@@ -1940,7 +1939,7 @@ void VclScrolledWindow::setAllocation(const Size &rAllocation)
m_pVScroll
->
Show
(
nAvailHeight
<
aChildReq
.
Height
());
}
Size
aInnerSize
(
aChild
Allocation
);
Size
aInnerSize
(
r
Allocation
);
long
nScrollBarWidth
=
0
,
nScrollBarHeight
=
0
;
if
(
m_pVScroll
->
IsVisible
())
...
...
@@ -1949,9 +1948,7 @@ void VclScrolledWindow::setAllocation(const Size &rAllocation)
Point
aScrollPos
(
rAllocation
.
Width
()
-
nScrollBarWidth
,
0
);
Size
aScrollSize
(
nScrollBarWidth
,
rAllocation
.
Height
());
setLayoutAllocation
(
*
m_pVScroll
,
aScrollPos
,
aScrollSize
);
aChildAllocation
.
AdjustWidth
(
-
nScrollBarWidth
);
aInnerSize
.
AdjustWidth
(
-
nScrollBarWidth
);
aChildAllocation
.
setHeight
(
aChildReq
.
Height
()
);
}
if
(
m_pHScroll
->
IsVisible
())
...
...
@@ -1960,9 +1957,7 @@ void VclScrolledWindow::setAllocation(const Size &rAllocation)
Point
aScrollPos
(
0
,
rAllocation
.
Height
()
-
nScrollBarHeight
);
Size
aScrollSize
(
rAllocation
.
Width
(),
nScrollBarHeight
);
setLayoutAllocation
(
*
m_pHScroll
,
aScrollPos
,
aScrollSize
);
aChildAllocation
.
AdjustHeight
(
-
nScrollBarHeight
);
aInnerSize
.
AdjustHeight
(
-
nScrollBarHeight
);
aChildAllocation
.
setWidth
(
aChildReq
.
Width
()
);
}
if
(
m_pVScroll
->
IsVisible
()
&&
m_pHScroll
->
IsVisible
())
...
...
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