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

Issue with PageLayout nested in another layout #4330

Open
Tungsteno74 opened this issue May 28, 2016 · 2 comments
Open

Issue with PageLayout nested in another layout #4330

Tungsteno74 opened this issue May 28, 2016 · 2 comments

Comments

@Tungsteno74
Copy link

Tungsteno74 commented May 28, 2016

The pageLayout is in a wrong position when the app is started. If i swip a page (moving the mouse in the position where the pagelayout should be) automatically the content is relocated to the proper area of the screen.

A simple test code that give me the problem:

    BoxLayout:
        BoxLayout:
            size_hint_y: .08    
            orientation: "horizontal"               
            AnchorLayout:
                anchor_x: "center"
                BoxLayout:  
                    size_hint_x: None
                    width: dp(350)
                    Label:
                        text: "text"
                    Label:
                        text: "text2"
                        text_size: self.size
                        font_size: 18
                        markup: True
                        halign: "left"
                        valign: "middle"                
        BoxLayout:
            PageLayout:
                BoxLayout:
                    orientation: "horizontal"               
                    Label: 
                        text: "text3"   
                BoxLayout:
                    orientation: "horizontal"   
                    Label: 
                        text: "text4"   
                BoxLayout:
                    orientation: "horizontal"   
                    Label: 
                        text: "text5"   
        BoxLayout:
            size_hint_y: .15
            BoxLayout:
                BoxLayout:
                    orientation: "horizontal"   
                    BoxLayout:
                        orientation: "horizontal"   
                        Label:
                            text: "text6"
                    BoxLayout:
                        orientation: "horizontal"   
                        size_hint_y: .3
                        Label:
                            text: "text7"
                BoxLayout:
                    size_hint_x: .1
                    Button:         
                        text: "text8"

Is an issue or there is a trick to make it work on startup?

thanks

@Tungsteno74
Copy link
Author

Tungsteno74 commented May 29, 2016

A partial raw fix can be done by putting PageLayout inside a RelativeLayout. I used pos:0,0 for PageLayout as suggest in the RelativeLayout docs, but don't know if can be of any help.

This only fix the position of the layout at start but, doesn't fix completely the problem because sometimes the PageLayout seem to ignore the currently displayed page attribute when app start and show the last page of the group.

It's possible to force the refreshing of the Layout attributes in kv language?

@stale
Copy link

stale bot commented Oct 7, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 7, 2017
@dessant dessant removed the stale label May 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants