Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TreeViewNode: Fix arrow pos and size #6574

Merged
merged 1 commit into from
Sep 26, 2020
Merged

TreeViewNode: Fix arrow pos and size #6574

merged 1 commit into from
Sep 26, 2020

Conversation

noembryo
Copy link
Contributor

The arrow in the file chooser is too big and in a wrong position when used with a mobile.
For full details see here.

The arrow in the file chooser is too big and in a wrong position when used with a mobile.
For full details see [here](https://groups.google.com/forum/#!msg/kivy-users/1bSCsywt2xA/o6F4prAhEAAJ)
@welcome
Copy link

welcome bot commented Oct 28, 2019

Thanks for opening your first pull request here! 💖 Please check out our contributing guidelines.

@noembryo
Copy link
Contributor Author

noembryo commented Oct 28, 2019

Current code screenshots message
Current code that is too narrow in mobile:
x current_code

Current code with out the FileListEntry height change that has a correct height in mobile devices:
x current_code no_resize_row

Fixed screenshot message

x fix_size

@@ -335,7 +335,7 @@

orientation: 'horizontal'
size_hint_y: None
height: '24dp' # '48dp' if dp(1) > 1 else '24dp'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too narrow on mobile

@@ -235,8 +235,8 @@
rgba: 1, 1, 1, int(not self.is_leaf)
Rectangle:
source: 'atlas://data/images/defaulttheme/tree_%s' % ('opened' if self.is_open else 'closed')
size: self.height / 2.0, self.height / 2.0
pos: self.x - dp(20), self.center_y - dp(8)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Off center positioning in mobile

@@ -235,8 +235,8 @@
rgba: 1, 1, 1, int(not self.is_leaf)
Rectangle:
source: 'atlas://data/images/defaulttheme/tree_%s' % ('opened' if self.is_open else 'closed')
size: self.height / 2.0, self.height / 2.0
Copy link
Contributor Author

@noembryo noembryo Oct 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Size of arrow gets big if the row height increase in mobile (we must use big rows on mobile)

Copy link
Member

@tshirtman tshirtman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Zen-CODE Zen-CODE merged commit 7397bba into kivy:master Sep 26, 2020
@welcome
Copy link

welcome bot commented Sep 26, 2020

Congrats on merging your first pull request! 🎉🎉🎉

@Zen-CODE
Copy link
Member

Works for me! @noembryo Nice. Thanks

@matham matham added this to the 2.0.0 milestone Oct 28, 2020
@matham matham changed the title TreeViewNode'a arrow in filechooser TreeViewNode: Fix arrow pos and size Dec 8, 2020
@matham matham added the Component: Widgets kivy/uix, style.kv label Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Widgets kivy/uix, style.kv
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants