Developer Portal Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Column of Mod_Grid not stretching dynamically

    Column of Mod_Grid not stretching dynamically

    MarvinW
    Long-established Member

    Hello,

    This is for the HMI modulo 4.11.5.0.

    I am creating a station whose HMI will be displayed on screens with different screen resolutions. On a particularly busy page I am using Mod_Panels to stretch my controls according to the space requirements. In one of those panels I am using a Mod_Grid control with a single column. I set the anchors and the control is changing its size correctly as I am resizing the window.

    But my problem is that the column inside the Mod_Grid is not changing its size, making the dynamic resizing function sort of useless for this control. It always keeps the width I set for the column in Columns collection. The documentation promises that the last column would change its width to fill the entire Mod_Grid control, but that does not seem to be the case:

    MarvinW_0-1654061763070.png

    I also tried various other settings, but no matter what I do, the width is fixed. Are there any solutions to this?

    Thanks in advance.

    3 REPLIES 3

    maj9bj
    Long-established Member

    Did you try it in single HMI form? For me it works, so maybe it has something to do with Mod_Panel.

    maj9bj_0-1654088187313.png

    maj9bj_1-1654088204850.png

     

    MarvinW
    Long-established Member

    I tried several more things, also putting the Mod_Grid into its own view without any other smart controls. I found that I can only make it scale the last column dynamically if I do not link any column data (VWItemColumnData). As soon as I specify an array here (I tried both strings and numbers), the width will not change anymore and be fixed to the value I set. Well, this does not seem quite intentional. Did you manage to make it work _with_ data?

    Hi Marvin,

    you are right. The behaviour of the last column with connected data should be the same as if there is no data connected.

    Also it only happens if the anchor or dock property of the Mod_Grid is set. In this case it only scales until the configured width of the control is reached. 

    I will try to fix that with one of the next bugfixversions.

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist