flamingo
  1. flamingo
  2. FLAMINGO-45

dropdown popups overlapping in minimized ribbon

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.1
    • Fix Version/s: milestone 1
    • Component/s: ribbon
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

    • Issuezilla Id:
      45

      Description

      Hello,

      Bug occures with components with dropdown popups (like combobox or office like
      style selector).
      When ribben is in minimized mode (acts like popup itself), it overlaps dropdown
      popup.

      How to reproduce:
      precondition: ribbon with combobox
      1. set ribbon to minimized mode (doubleclick on tab)
      2. open ribbon and click on combobox (it should be shown normally)
      3. loose focus (so ribbon becomes closed again) and repeat step 2 (dropdown
      popup will be below ribbon itself)

      tested on windows vista and xp
      sun jre 1.6u10
      J2D_D3D=false

      Regards,

      1. flamingobug.jpg
        63 kB
      2. flamingobug2.jpg
        67 kB
      3. repaint_bug_sample.jpg
        25 kB
      4. repaint_bug_sample2.jpg
        18 kB
      5. ribbonbug3.JPG
        57 kB
      6. ribbonbug3.JPG
        57 kB
      7. ribbonbug4.jpg
        68 kB

        Activity

        Hide
        kirillcool added a comment -

        I'm not aware of any tutorials that go to that level (implementation of
        lightweight / heavyweight popups).

        Thanks
        Kirill

        Show
        kirillcool added a comment - I'm not aware of any tutorials that go to that level (implementation of lightweight / heavyweight popups). Thanks Kirill
        Hide
        xvik added a comment -

        Hello Kirill,

        I've done migration of my application to substance-* 5.2, flamingo 4.1 (and
        also swingx 1.0). Also I've enabled new windows redering pipeline -
        Dsun.java2d.d3d=true (the only reason to stay without it was bug in jfreechart
        which is fixed now).

        As a result, i see this bug again. And even worse: after enebling
        sun.java2d.d3d=true the count of grey rect's instead of combobox popups grows a
        lot.

        But, thankfully you note that popups are heavyweight, so i put this code after
        ribbon initialization:
        ToolTipManager.sharedInstance().setLightWeightPopupEnabled(true);
        JPopupMenu.setDefaultLightWeightPopupEnabled(true);

        And this solves both problems!!!
        What is the reason to leave popups heavyweight by default? (if i'm right, java
        1.6 update 10 fixes lightweight popups bugs)

        But there is enother bug in 4.1 release (i haven't seen it before):
        when i switching from one popup to enother (in different grops on the same tab)
        group highlighting is badly rendered: a kind of "grey rect" problem (see
        attachments)

        Regards,

        Show
        xvik added a comment - Hello Kirill, I've done migration of my application to substance-* 5.2, flamingo 4.1 (and also swingx 1.0). Also I've enabled new windows redering pipeline - Dsun.java2d.d3d=true (the only reason to stay without it was bug in jfreechart which is fixed now). As a result, i see this bug again. And even worse: after enebling sun.java2d.d3d=true the count of grey rect's instead of combobox popups grows a lot. But, thankfully you note that popups are heavyweight, so i put this code after ribbon initialization: ToolTipManager.sharedInstance().setLightWeightPopupEnabled(true); JPopupMenu.setDefaultLightWeightPopupEnabled(true); And this solves both problems!!! What is the reason to leave popups heavyweight by default? (if i'm right, java 1.6 update 10 fixes lightweight popups bugs) But there is enother bug in 4.1 release (i haven't seen it before): when i switching from one popup to enother (in different grops on the same tab) group highlighting is badly rendered: a kind of "grey rect" problem (see attachments) Regards,
        Hide
        xvik added a comment -

        Created an attachment (id=25)
        Switching from opened combobox on right group to combobox on left group causes not complete highlighting disabling from right group (there is also separator between comboboxes and checkboxes on right group))

        Show
        xvik added a comment - Created an attachment (id=25) Switching from opened combobox on right group to combobox on left group causes not complete highlighting disabling from right group (there is also separator between comboboxes and checkboxes on right group))
        Hide
        xvik added a comment -

        Created an attachment (id=26)
        Switching back also causing not proper highlight disabling on left group

        Show
        xvik added a comment - Created an attachment (id=26) Switching back also causing not proper highlight disabling on left group
        Hide
        kirillcool added a comment -

        In at least the near future the topic of mixing Flamingo and core Swing popups
        will have to be deferred to the community. It does look like the entire custom
        popup module in Flamingo needs to be revisited, and i simply don't have enough
        resources to do this in the next few months.

        Thanks
        Kirill

        Show
        kirillcool added a comment - In at least the near future the topic of mixing Flamingo and core Swing popups will have to be deferred to the community. It does look like the entire custom popup module in Flamingo needs to be revisited, and i simply don't have enough resources to do this in the next few months. Thanks Kirill

          People

          • Assignee:
            kirillcool
            Reporter:
            xvik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: