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

SpanLabel Height incorrect setAllowEnableLayoutOnPaint Regression #3000

Closed
rochanas opened this issue Jan 19, 2020 · 0 comments
Closed

SpanLabel Height incorrect setAllowEnableLayoutOnPaint Regression #3000

rochanas opened this issue Jan 19, 2020 · 0 comments
Assignees
Milestone

Comments

@rochanas
Copy link

When on a layered layout, in a CENTER_BEHAVIOR_CENTER BorderLayout, the height of a span label is not being calculated. Test case:

        Button showPopUp = new Button("Show PopUp");
        Form f = new Form(BoxLayout.y());
        f.add(showPopUp);
        
        showPopUp.addActionListener((e) -> {
            
            SpanLabel messageSpanLabel = g2.getBaseSpanLabel("Tap the following button to open the gallery. You should be able to select multiple images and videos.");
            
            Container centerContainerOuter = new Container(new BorderLayout(CENTER_BEHAVIOR_CENTER));
            centerContainerOuter.add(CENTER, messageSpanLabel);

            Container layeredPane = getCurrentForm().getLayeredPane();
            layeredPane.setLayout(new LayeredLayout());        
            layeredPane.add(centerContainerOuter);
            layeredPane.setVisible(true);

            getCurrentForm().revalidate();     
        });
        
        f.show();

This looks similar to case: #2980. Results in simulator:
SpanLabelIssue

@codenameone codenameone changed the title SpanLabel Height incorrect SpanLabel Height incorrect setAllowEnableLayoutOnPaint Regression Jan 19, 2020
@codenameone codenameone added this to the Version 7.0 milestone Jan 19, 2020
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