I have controls in my view. All objects have different width and height. I have an array of these objects. I need to write recursive function that will move to a new line my objects if they don't fit in the current line (something like in notepad or textedit).
I suppose we need to check current object from array in cycle and if it fits to width we don't do any operations and if it does not fit to width of current view (line) we should to make recursion. am I right? And move our object to new line while we have object in array.