Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Developer
Posts: 660
Registered: ‎10-08-2009
My Device: Bold 9900
My Carrier: Telus

TitleBar recycling? 10.0 and 10.1

Hi, I am seeing an interesting issue with TitleBar from two separate qml files tied in via TabbedPane.

 

In 10.1, I am not seeing the problem but in 10.0, this is pretty serious problem. Can anyone from RIM tell me what is causing this? I am not reusing any variable from one qml to another. NOTE the top is 10.0 and bottom is 10.1

 

p1.png

 

p2.png

----------------------------------------------------------
Twitter: @gyubok
Developer
Posts: 102
Registered: ‎06-03-2012
My Device: Playbook
My Carrier: *

Re: TitleBar recycling? 10.0 and 10.1

I had this issue on 10.0 as well. Simply seems to be a bug. In my case I could work around by using a segmented control instead of the title bar element. Hope to get rid of that hack soon...

 

-----------
http://kodira.de
BB Apps: Pattern :: Plonk
Developer
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: TitleBar recycling? 10.0 and 10.1

Same problem anyone have any insights on a good workaround or fix?
_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Retired
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: TitleBar recycling? 10.0 and 10.1

How often does this occur? Can you reproduce it with a simple sample app? Are all those misplaced UI bits from other parts of your application?

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Developer
Posts: 660
Registered: ‎10-08-2009
My Device: Bold 9900
My Carrier: Telus

Re: TitleBar recycling? 10.0 and 10.1

TabbedPane {
    Tab {
        Page {
            titleBar : TitleBar {
                kind: TitleBarKind.Segmented
                options: [
                    Option {
                        text: "Please"
                        value: "please"
                    },
                    Option {
                        text: "Fix"
                        value: "fix"
                    },
                    Option {
                        text: "This!"
                        value: "this"
                    }
                ]
            }
        }
    }
    Tab {
        Page {
            titleBar: TitleBar {
                title: "BlackBerry"
                acceptAction: ActionItem {
                    title: "BlackBerry"
                    onTriggered: {
                    }
                }
            }
        }
    }
}

 Reproduced. on 10.0

----------------------------------------------------------
Twitter: @gyubok
Developer
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: TitleBar recycling? 10.0 and 10.1

Example in small sample app

https://dl.dropboxusercontent.com/u/32351813/TestApp.zip
_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Retired
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: TitleBar recycling? 10.0 and 10.1

No need to bump, I was already looking at it Smiley Happy

 

You are definitely right that it's broken. Since it's already fixed in 10.1 there doesn't seem to be much point in logging a bug, so the only question really is if we can come up with a work-around, which I am playing around with right now.

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Retired
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: TitleBar recycling? 10.0 and 10.1

I haven't been able to come up with a work around. Even deleting and creating new titlebars every time does not appear to solve the problem. My only recommendation would be to avoid mixing a segmented title bar with a default title bar in a tab pane on 10.0.

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Developer
Posts: 660
Registered: ‎10-08-2009
My Device: Bold 9900
My Carrier: Telus

Re: TitleBar recycling? 10.0 and 10.1

Thanks for the suggestion but this is pretty serious issue as I'm sure I'm not the only one who mixes those two controls in a tabbedpane. Will there be a an sdk update to address this problem? If we don't issue a bug report, how will they know to fix it for 10.0 users?
----------------------------------------------------------
Twitter: @gyubok
Retired
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: TitleBar recycling? 10.0 and 10.1

It's not going to get fixed in 10.0, as the next update any 10.0 devices get should be up to 10.1. Hopefully that will be soon since the Q10 has started launching.

 

Have you launched your app yet? If not, you could always just target 10.1 (and take advantage of all the nice features it comes with like the Validator API, asset selector, and keyboard shortcuts) and let the Z10 users see your app when they update. Depending on how long it takes to develop your app, the wait could be negligable or nonexistent.

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker