Forum Discussion

simonaferrara's avatar
simonaferrara
Frequent Contributor
4 years ago
Solved

Change browser size basing on a component size

Hi all,   I would like to change the browser size by specifying a specific dimension for a component within the Page (and automatically adapt the browser size to display the component in the specif...
  • AlexKaras's avatar
    4 years ago

    Hi Simona,

     

    I think that how this component scales according to the size of browser's viewport is its internal functionality.

    Thus I see two possible options:

    a) Talk to your developers and create a table or a formula expression that will match component's size with the size of viewport. Then set viewport to the required size and you should be all set. (If component's size appears to be incorrect this may mean either an error in your table/formula or an issue in component's scaling algorithm);

    b) Set some initial size for viewport and get the resulting size of component. Incrementally decrease or increase the size of viewport (or the entire browser's window, this is irrelevant in your case) in a loop until the component becomes of the size that you need.