Skip to content
Browse files

Use CSS overflow instead of Gtk scrollbar policy.

Per @tbaugis' suggestion, use `overflow-x` and `overflow-y` instead of
`Gtk.PolicyType` to determine when scrollbars will be visible.
  • Loading branch information...
1 parent 481d45b commit d0295c8c384d2ed51d473edcea7fe5379a30e55f @martey martey committed Aug 29, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −3 extension.js
  2. +2 −0 stylesheet.css
View
4 extension.js
@@ -103,9 +103,7 @@ HamsterBox.prototype = {
label.set_text(_("Todays activities"))
box.add(label);
- let scrollbox = new St.ScrollView({style_class: 'hamster-scrollbox',
- 'hscrollbar-policy': Gtk.PolicyType.NEVER,
- 'vscrollbar-policy': Gtk.PolicyType.AUTOMATIC});
+ let scrollbox = new St.ScrollView({style_class: 'hamster-scrollbox'});
box.add(scrollbox);
// Since St.Table does not implement StScrollable, we create a
View
2 stylesheet.css
@@ -14,6 +14,8 @@
.hamster-scrollbox {
max-height: 200px;
+ overflow-x: none;
+ overflow-y: auto;
}
.cell-label {

0 comments on commit d0295c8

Please sign in to comment.
Something went wrong with that request. Please try again.