Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Limiting the Size of a Select Box

Limiting the Size of a Select Box

iamt_ps
Member

Hello,

I have the problem, that the select box is cut off by the screen edge when it is expanded. Therefore I wanted to ask, if there is a way to limit the size of the expansion so that it does not keep getting cut off by the edge of the Screen. I attached a screenshot of the select box. The project is created using pixels for positioning. The white background is sized to show the actual screen area and the grey background shows the area that is out of screen on the target device. I have tried to run the project on the target device with the screen size of 1366x768px but the select box is still cut off and the last items are not reachable on the target device. 

SelectBox.PNG

3 REPLIES 3

webiq-sk
Frequent Contributor

Hello, as it's a web HMI you can solve these issues with CSS - this is the correct selector:

.iq-select-box .iq-anchor {
    max-height: 296px;
}


Please note that this will change the height of all select box option dropdowns so you might want to customize that by using a custom class.

It worked thank you very much for the quick support!

HmiGuide
Community Moderator
Community Moderator

You can also open the list upwards. Unfortunately, this does not currently work automatically depending on the position, but can be set manually using the CSS modifier "list-on-top". Maybe this is helpful, too.

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