[fixed] Layouting bug in WrapPanel? (1 Viewer)

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    While experimenting with the WrapPanel for the new ApolloOne skin, I found out two strange things:
    1. I feel the interpretation of "Orientation=Vertical" is wrong: while "Orientation=Horizontal" gives you vertical scrollbars, the "Orientation=Vertical" gives you horizontal scrollbars. This sounds wrong to me, or is this the common behaviour. Does WPF has a WrapPanel and does it act the same way?
    2. When changing the orientation only, the content is aranged and sized(!) differently, resulting in other "tile" sizes.
    "Orientation=Horizontal" (or omitted):
    20131004-Background+Homebuttons.jpg


    "Orientation=Vertical"
    20131006-OrientationVertical.jpg


    @offbyone, as you worked recently on a virtualized version of WrapPanel, can you confirm this as bug or is it "by design"?
     
    Last edited:

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Puh, good question.
    I haven't looked at the Orientation, mainly because I expected it to be correct and also no vertical wrappanels were used anywere.
    We should check how it is used in WPF to stay conform.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #3
    Ok, seems like point 1) is by design (did some googling).

    So at least point 2) looks like a bug. Why should the items get another size?
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    The second layout looks like it is arranging the items alternating on the two possible rows.
    But why they are not as wide as in the first variant must be a bug.
     
    Last edited:

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #5
    I found and fixed the size calculation issue. Change commited to dev.
     

    Users who are viewing this thread

    Top Bottom