Results 1 to 6 of 6

Thread: pbAutoColumnSizing does not work properly

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2013
    Location
    Nässjö Sweden
    Posts
    595

    Default pbAutoColumnSizing does not work properly

    Using Beta 2. This did work in Beta 1 so this is new and came with Beta 2.
    If you have 2 groups. Put a grid in the left group and then webset the pbAutoColumnSizing of the grid to true.
    It will grow the whole width of the page and the right group will end up on top of the grid.

    I made an example view:
    TestHoriView.wo
    Software Developer Prosmart System AB
    www.prosmart.se

  2. #2
    Join Date
    Oct 2013
    Location
    Nässjö Sweden
    Posts
    595

    Default Re: pbAutoColumnSizing does not work properly

    I think this is a css issue in system.css.
    Removing the following code solves the issue:
    Code:
    .WebControl .WebCon_Inner {
        display: grid;
        grid-template-areas: "control";
    }
    Software Developer Prosmart System AB
    www.prosmart.se

  3. #3
    Join Date
    Feb 2009
    Location
    The Netherlands
    Posts
    4,613

    Default Re: pbAutoColumnSizing does not work properly

    Thanks for the excellent report.

    You are correct, this is caused by the new label positioning logic. We redid that using CSS grid to solve issues we had with labels within the grid layout. If you set pbShowLabel to true with peLabelPosition on lpLeft or lpRight this also does not happen. I think we'll fix this by changing the CSS you pointed out into:
    Code:
    .WebControl .WebCon_Inner {
        display: grid;
        grid-template-areas: "control";
        grid-template-columns: minmax(0, 1fr);
    }
    Can you test this (you can just put this in your application.css)?

  4. #4
    Join Date
    Oct 2013
    Location
    Nässjö Sweden
    Posts
    595

    Default Re: pbAutoColumnSizing does not work properly

    Quote Originally Posted by Harm Wibier View Post
    Thanks for the excellent report.

    You are correct, this is caused by the new label positioning logic. We redid that using CSS grid to solve issues we had with labels within the grid layout. If you set pbShowLabel to true with peLabelPosition on lpLeft or lpRight this also does not happen. I think we'll fix this by changing the CSS you pointed out into:
    Code:
    .WebControl .WebCon_Inner {
        display: grid;
        grid-template-areas: "control";
        grid-template-columns: minmax(0, 1fr);
    }
    Can you test this (you can just put this in your application.css)?
    Hi Harm.

    Yes, this change works!
    Software Developer Prosmart System AB
    www.prosmart.se

  5. #5
    Join Date
    Sep 2016
    Location
    São Paulo - Brazil
    Posts
    642

    Default Re: pbAutoColumnSizing does not work properly

    Hi,

    I'm on beta 2 on windows and this fails too.
    Change the property in order.vw, drag the columns.
    Seems to always be at pbAutoColumnSizing=false.
    I don't see the horizontal scroll bar.

    Click image for larger version. 

Name:	pbautocolumn.jpg 
Views:	25 
Size:	130.0 KB 
ID:	16186

    Best Regards,

    Edgard Luis Paneque

  6. #6
    Join Date
    Feb 2009
    Location
    The Netherlands
    Posts
    4,613

    Default Re: pbAutoColumnSizing does not work properly

    This seems to be mostly a designer issue, at runtime you'll see the scrollbar (once you make the columns wider).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •