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

ADAPT THE SCREEN RESOLUTION TO DIFFERENT DEVICES

ADAPT THE SCREEN RESOLUTION TO DIFFERENT DEVICES

AGME
New Poster

Hello,

I have developed my HMI project for extra-wide resolution as this is the resolution of my laptop.

But now I would like to be able to display the developed HMI on other devices.

How can I adapt the resolution of all the widgets that I have used?

Regards.

5 REPLIES 5

webiq-sk
Frequent Contributor

If you have created your HMI using the responsive design styling recommended by Smart-HMI depending on your layout there's probably not so much to do. Our Responsive Design Demo illustrates this: https://demo.smart-hmi.com/demo-responsive/ 

In modern web design you usually use a mobile-first approach, i.e. start with the lowest resolution first and then extend into larger resolutions.

If you used only absolute positioning which we do not recommend then you should change it to responsive layout.

Widgets do not have a resolution per se, they automatically adapt to the available space - unless you have restricted this and not used flex layout but set the dimensions to fixed resolutions in the style tab - then the browser adheres to your settings.

Device-specific styling might also be an option: https://www.smart-hmi.com/user/download/deliver/docs/documentation-manual-webiq-designer-2.14-3d30/i...

Maybe if you elaborate on the topic and provide more details I would be able to help you more, but specific issues cannot be answered if only general information is provided, unfortunately.

I have used most widgets and containers in absolute position.
Now, in order for it to automatically adapt to different resolutions, should I use static positioning on all widgets and containers?

 

Regards

webiq-sk
Frequent Contributor

I think I already answered that question above:

1. "you should change it to responsive layout"
2. "Device-specific styling might also be an option"

Static positioning will not help: https://www.w3schools.com/css/css_positioning.asp

 

HmiGuide
Community Moderator
Community Moderator

The advice "you should change it to responsive layout" sounds quite easy.

From my own experience, I can say that you need some time to get familiar with the mindset of responsive design. This is true regardless of the tool you use.

My recommendation:
- Read information about responsive layout in the WebIQ manual.
- Gain experience by following examples
- Analyze an existing project to find out align/wrap/hide your widgets for different resolutions
- Convert existing project

webiq-sk
Frequent Contributor

@HmiGuide That's why we always recommend to use responsive layouts in the first place - changing it later often means starting from scratch - especially when everything has been positioned absolutely.

 

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