Skip to content

Commit

Permalink
Update 4.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Bakterija committed Aug 15, 2017
1 parent 5c24522 commit 75b9376
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 4.10
- Fixed compat widget AppPopup not updating min_hover_height correctly


# 4.00
- Added AppRecycleView filters property
- Changed AppRecycleView on_key_down method to scroll a page up/down instead of to start or end when page up/down is pressed
Expand Down
8 changes: 4 additions & 4 deletions kb_system/compat_widgets/popup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from kivy_soil.kb_system.canvas import FocusBehaviorCanvas
from kivy_soil.hover_behavior import HoverBehavior
from kivy.uix.modalview import ModalView
from kivy_soil import hover_behavior
from kivy_soil.kb_system import keys
from kivy.uix.popup import Popup
from kivy.lang import Builder


class AppPopup(hover_behavior.HoverBehavior, FocusBehaviorCanvas, Popup):
class AppPopup(HoverBehavior, FocusBehaviorCanvas, Popup):
'''A special Popup class that integrates with kivy_soil hover_behavior
and increases hover_behavior.min_hover_height when it is opened'''

Expand All @@ -18,11 +18,11 @@ def __init__(self, **kwargs):
self.grab_focus = True

def open(self):
hover_behavior.min_hover_height = self.hover_height
self.set_min_hover_height(self.hover_height)
super(AppPopup, self).open()
self.is_focusable = True

def dismiss(self):
hover_behavior.min_hover_height = 0
self.set_min_hover_height(0)
super(AppPopup, self).dismiss()
self.is_focusable = False
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.00
4.10

0 comments on commit 75b9376

Please sign in to comment.