BoxLayout TreeViewNode duplicated on x-axis #780

Closed
kd7lxl opened this Issue Nov 2, 2012 · 1 comment

2 participants

@kd7lxl

I have a BoxLayout in a TreeView that is duplicating its contents on the x axis.

duplicated BoxLayout

kv:

#:kivy 1.4.1

Accordion:
    statustree: statustree
    orientation: 'vertical'

    AccordionItem:
        title: 'Status'

        ScrollView:
            do_scroll_x: False

            TreeView:
                id: statustree
                hide_root: True
                size_hint_y: None
                width: scrollview.width
                height: self.minimum_height

<TreeViewProgressBar>
    height: '24sp'
    Label:
        text: 'Battery'
        font_size: '15sp'
    ProgressBar:
        max: 100
        value: 67

main.py:

from kivy.app import App
from kivy.lang import Builder
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.treeview import TreeViewLabel, TreeViewNode

Builder.load_file('digisnap.kv')

class TreeViewProgressBar(BoxLayout, TreeViewNode):
    pass

class DigiSnapApp(App):
    def build(self):
        st = self.root.statustree
        st.add_node(TreeViewLabel(text='hello world'))
        st.add_node(TreeViewProgressBar())
@akshayaurora
Kivy member

Can't reproduce with master. @kd7lxl please re-check with latest master from github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment