Quick Question: Best practice for sizing UI elements
-
Hello,
I would like to know what your best practice is for sizing elements in hise. When i size my elements in interface designer using decimals, sometimes hise doesnt render that properly and rounds down sometimes. Like if i put height in for panel as 10.50 it appears as 10 on screen. Is this carry to production or is it just interface designer thing. Is best practice just to use set whole numbers instead of pixels. If my ui was designed in retina, the elements designed are double the actual implementation for sizing purposes and some numbers can turn out to be decimals when dividing retina value by 2.
Thank you
-
@Gudru any ideas?
-
I believe non-decimal values are best, but I'm not certain.
-
If you're importing images at double the resolution, the width and height should be even numbers. Do this at the source. If you know your strips and images will be scaled down by 50%, their dimensions should be divisible by 2.
Other than that, your best bet is to inspect things visually. Put the images in, set your target resolution and see how it looks. The designer is pretty much "what you see is what you get".