Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gajim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Bronko
gajim
Commits
068274fe
Commit
068274fe
authored
Dec 27, 2019
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MessageInput: Set min height for vertical scrollbar
Fixes #9574, #8980
parent
162ca259
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
18 deletions
+3
-18
gajim/chat_control_base.py
gajim/chat_control_base.py
+2
-18
gajim/data/style/gajim.css
gajim/data/style/gajim.css
+1
-0
No files found.
gajim/chat_control_base.py
View file @
068274fe
...
...
@@ -1567,22 +1567,6 @@ class ScrolledWindow(Gtk.ScrolledWindow):
self
.
get_style_context
().
add_class
(
'scrolled-no-border'
)
self
.
get_style_context
().
add_class
(
'no-scroll-indicator'
)
self
.
get_style_context
().
add_class
(
'scrollbar-style'
)
self
.
get_style_context
().
add_class
(
'one-line-scrollbar'
)
self
.
set_shadow_type
(
Gtk
.
ShadowType
.
IN
)
def
do_get_preferred_height
(
self
):
min_height
,
natural_height
=
Gtk
.
ScrolledWindow
.
do_get_preferred_height
(
self
)
# Gtk Bug: If policy is set to Automatic, the ScrolledWindow
# has a min size of around 46-82 depending on the System. Because
# we want it smaller, we set policy NEVER if the height is < 90
# so the ScrolledWindow will shrink to around 26 (1 line height).
# Once it gets over 90 its no problem to restore the policy.
if
natural_height
<
90
:
GLib
.
idle_add
(
self
.
set_policy
,
Gtk
.
PolicyType
.
AUTOMATIC
,
Gtk
.
PolicyType
.
NEVER
)
else
:
GLib
.
idle_add
(
self
.
set_policy
,
Gtk
.
PolicyType
.
AUTOMATIC
,
Gtk
.
PolicyType
.
AUTOMATIC
)
return
min_height
,
natural_height
self
.
set_policy
(
Gtk
.
PolicyType
.
AUTOMATIC
,
Gtk
.
PolicyType
.
AUTOMATIC
)
gajim/data/style/gajim.css
View file @
068274fe
...
...
@@ -21,6 +21,7 @@
.scrollbar-style
scrollbar
trough
{
background-color
:
@
theme_base_color
;
}
.scrollbar-style
scrollbar
{
border
:
none
;
}
.scrollbar-style
slider
{
min-width
:
3px
;
background-color
:
#a0a3a4
}
.one-line-scrollbar
scrollbar
.vertical
slider
{
min-height
:
20px
;
}
.actionbar-no-border
box
{
border
:
none
}
.actionbar-no-border
button
{
...
...
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