It seems that there is no good practices for a WAM developer to give hints about the preferred size of a plugin. Some plugins from the wam-example repo expose gui.properties.dataWidth.value and gui.properties.dataHeight.value for example (this is the case of the BigMuff WAM + others). Some developer add directly to the main div container a width and a height attribute etc.
On the other hand, are there good practices for a host in order to display correctly a WAM. Should the host wrap the WAM container in a div in order to give it a size (i.e the host decides in this case), or should the wam provide a div with a preferred size (in that case the WAM decides) ?
Michel
It seems that there is no good practices for a WAM developer to give hints about the preferred size of a plugin. Some plugins from the wam-example repo expose gui.properties.dataWidth.value and gui.properties.dataHeight.value for example (this is the case of the BigMuff WAM + others). Some developer add directly to the main div container a width and a height attribute etc.
On the other hand, are there good practices for a host in order to display correctly a WAM. Should the host wrap the WAM container in a div in order to give it a size (i.e the host decides in this case), or should the wam provide a div with a preferred size (in that case the WAM decides) ?
Michel