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
b7f15ab8
Kaydet (Commit)
b7f15ab8
authored
Nis 26, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
gtk3: sane height for list boxes too
Change-Id: I40515c6cfe2a3ea8fc6e2577561c2e54ead09fac
üst
fcf8f4e6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
ilstbox.cxx
vcl/source/control/ilstbox.cxx
+1
-1
lstbox.cxx
vcl/source/control/lstbox.cxx
+4
-4
gtk3salnativewidgets-gtk.cxx
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+1
-1
No files found.
vcl/source/control/ilstbox.cxx
Dosyayı görüntüle @
b7f15ab8
...
...
@@ -2661,7 +2661,7 @@ void ImplWin::ImplDraw( bool bLayout )
// vcl/source/window/brdwin.cxx
vcl
::
Window
*
pWin
=
GetParent
();
ImplControlValue
aControlValue
;
EditBoxValue
aControlValue
(
GetTextHeight
())
;
if
(
!
pWin
->
IsEnabled
()
)
nState
&=
~
ControlState
::
ENABLED
;
if
(
pWin
->
HasFocus
()
)
...
...
vcl/source/control/lstbox.cxx
Dosyayı görüntüle @
b7f15ab8
...
...
@@ -116,7 +116,7 @@ void ListBox::ImplInit( vcl::Window* pParent, WinBits nStyle )
if
(
IsNativeWidgetEnabled
()
&&
IsNativeControlSupported
(
CTRL_LISTBOX
,
PART_ENTIRE_CONTROL
)
)
{
ImplControlValue
aControlValue
;
EditBoxValue
aControlValue
(
GetTextHeight
())
;
Rectangle
aCtrlRegion
(
Point
(
0
,
0
),
Size
(
20
,
mnDDHeight
)
);
Rectangle
aBoundingRgn
(
aCtrlRegion
);
Rectangle
aContentRgn
(
aCtrlRegion
);
...
...
@@ -626,7 +626,7 @@ void ListBox::Resize()
// Note: in case of no border, pBorder will actually be this
vcl
::
Window
*
pBorder
=
GetWindow
(
WINDOW_BORDER
);
ImplControlValue
aControlValue
;
EditBoxValue
aControlValue
(
GetTextHeight
())
;
Point
aPoint
;
Rectangle
aContent
,
aBound
;
...
...
@@ -1212,7 +1212,7 @@ Size ListBox::CalcMinimumSize() const
{
// Try native borders; scrollbar size may not be a good indicator
// See how large the edit area inside is to estimate what is needed for the dropdown
ImplControlValue
aControlValue
;
EditBoxValue
aControlValue
(
GetTextHeight
())
;
Point
aPoint
;
Rectangle
aContent
,
aBound
;
Size
aTestSize
(
100
,
20
);
...
...
@@ -1231,7 +1231,7 @@ Size ListBox::CalcMinimumSize() const
if
(
IsDropDownBox
())
// Check minimum height of dropdown box
{
ImplControlValue
aControlValue
;
EditBoxValue
aControlValue
(
GetTextHeight
())
;
Rectangle
aRect
(
Point
(
0
,
0
),
aSz
);
Rectangle
aContent
,
aBound
;
if
(
GetNativeControlRegion
(
CTRL_LISTBOX
,
PART_ENTIRE_CONTROL
,
aRect
,
ControlState
::
NONE
,
...
...
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
Dosyayı görüntüle @
b7f15ab8
...
...
@@ -1069,7 +1069,7 @@ bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar
{
aEditRect
=
NWGetComboBoxButtonRect
(
nType
,
nPart
,
rControlRegion
);
}
else
if
((
nType
==
CTRL_EDITBOX
||
nType
==
CTRL_COMBOBOX
)
&&
nPart
==
PART_ENTIRE_CONTROL
)
else
if
((
nType
==
CTRL_EDITBOX
||
nType
==
CTRL_
LISTBOX
||
nType
==
CTRL_
COMBOBOX
)
&&
nPart
==
PART_ENTIRE_CONTROL
)
{
gtk_style_context_save
(
mpEntryStyle
);
gtk_style_context_add_class
(
mpEntryStyle
,
GTK_STYLE_CLASS_ENTRY
);
...
...
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