Skip to content

Commit

Permalink
The SelectableLabel items inside the game list now properly scales it…
Browse files Browse the repository at this point in the history
…s height according to the available width and text length of the file path. This fixes #50
  • Loading branch information
nicoboss committed Aug 31, 2020
1 parent 674bb68 commit e300bb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nsz/gui/layout/GameList.kv
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@
filesize_text: '0 KB'
pos: self.pos
size: self.size
on_size: self.height = self.ids.id_filename.height #Booth required due to the way how Kivy resizes
Label:
id: id_filename
valign: "top"
halign: "left"
pos: 0, 0
size_hint: None, None
text_size: self.width, root.height
text_size: self.width, None
text: root.filename_text
size: root.width-300, self.texture_size[1]
on_size: root.height = self.height
on_size: root.height = self.height #Booth required due to the way how Kivy resizes
padding: [3, 2]
canvas.before:
Color:
Expand Down

0 comments on commit e300bb3

Please sign in to comment.