Req J* feature request thread
About the whole alignment of text (and other things) inside a container.

I recall from back when fiddling with html that contents could sort of "float" and fill semi-nicely even when items had different sizes, be that height or width.

I speculate the routine - for a really simple version that treats each item as a rectangle - could be something like this:
First item being drawn is placed top left and the next item to the right of this aligned to the top and right of the previous item (with a bit of space between ofcourse). This continues until the next item cannot fit width-wise on that "line". Just like it's being done today in Kodi in a regular not justified textbox I would imagine?

The tricky bit with the floating items (or words) is likely in the linebreaks.

I speculate the system simply kept track of the height (or the right-bottom corner) of these items and remembered the item that was the highest in the "line" leading up to this linebreak.
The pseudo code could probably be something like this, for beginning a new line:

If there is room width-wise to the right of the highest container, then place the first item on the new line to the right of this, and align y to be below the next-highest item to ensure that there is no overlapping. Continue the line normally from that position. Otherwise begin a completely new line below the highest item, aligning to the left of the container as usual.

Anyways. I'd like to see a "floating" panel layout I guess.. But not that much really, unless coupled with the ability to add a friggin huge first letter in a textbox Smile
Reply


Messages In This Thread
J* feature request thread - by Hitcher - 2015-07-17, 19:47
RE: J* feature request thread - by braz - 2015-07-17, 20:27
RE: J* feature request thread - by Jayz2K - 2015-07-17, 20:47
RE: J* feature request thread - by braz - 2015-07-17, 20:58
RE: J* feature request thread - by tomer953 - 2015-07-17, 20:54
RE: J* feature request thread - by Jayz2K - 2015-07-17, 23:13
RE: J* feature request thread - by sualfred - 2015-07-17, 23:31
RE: J* feature request thread - by wyrm - 2015-07-18, 02:28
RE: J* feature request thread - by tomer953 - 2015-07-18, 06:07
RE: J* feature request thread - by toolpunk - 2015-07-18, 08:26
RE: J* feature request thread - by Jayz2K - 2015-07-18, 11:27
RE: J* feature request thread - by josch - 2015-07-21, 11:26
RE: J* feature request thread - by Hitcher - 2015-07-21, 12:18
RE: J* feature request thread - by Hitcher - 2015-07-21, 15:26
RE: J* feature request thread - by phil65 - 2015-07-22, 16:45
RE: J* feature request thread - by toolpunk - 2015-07-23, 12:54
RE: J* feature request thread - by tomer953 - 2015-07-23, 13:48
RE: J* feature request thread - by toolpunk - 2015-07-23, 19:03
RE: J* feature request thread - by tomer953 - 2015-08-09, 16:28
RE: J* feature request thread - by im85288 - 2015-08-12, 23:01
RE: J* feature request thread - by im85288 - 2015-08-12, 23:04
RE: J* feature request thread - by im85288 - 2015-08-13, 19:00
RE: J* feature request thread - by tomer953 - 2015-08-19, 12:32
RE: J* feature request thread - by braz - 2015-08-29, 03:22
RE: J* feature request thread - by Hitcher - 2015-08-29, 07:59
RE: J* feature request thread - by braz - 2015-08-29, 17:08
RE: J* feature request thread - by im85288 - 2015-09-18, 13:25
RE: J* feature request thread - by im85288 - 2015-09-22, 13:01
RE: J* feature request thread - by Gade - 2015-09-22, 14:22
RE: J* feature request thread - by Sranshaft - 2015-09-22, 16:44
RE: J* feature request thread - by Gade - 2015-09-22, 17:17
RE: J* feature request thread - by Hitcher - 2015-09-22, 17:55
RE: J* feature request thread - by Gade - 2015-09-22, 19:22
RE: J* feature request thread - by Hitcher - 2015-09-22, 19:58
RE: J* feature request thread - by Gade - 2015-09-23, 20:18
RE: J* feature request thread - by tomer953 - 2015-09-25, 14:49
RE: J* feature request thread - by Hitcher - 2015-09-25, 16:24
RE: J* feature request thread - by Torben - 2015-09-29, 09:28
RE: J* feature request thread - by Torben - 2015-09-29, 09:34
RE: J* feature request thread - by Hitcher - 2015-09-29, 13:59
RE: J* feature request thread - by Torben - 2015-09-30, 17:40
RE: J* feature request thread - by Torben - 2015-10-03, 09:30
RE: J* feature request thread - by phil65 - 2015-10-03, 16:34
RE: J* feature request thread - by Torben - 2015-10-03, 19:59
RE: J* feature request thread - by Jayz2K - 2015-10-06, 17:42
RE: J* feature request thread - by Hitcher - 2015-10-06, 17:48
RE: J* feature request thread - by Jayz2K - 2015-10-06, 18:07
RE: J* feature request thread - by Torben - 2015-10-05, 07:34
RE: J* feature request thread - by Torben - 2015-10-05, 10:55
RE: J* feature request thread - by Torben - 2015-10-05, 11:42
RE: J* feature request thread - by Torben - 2015-10-06, 19:33
RE: J* feature request thread - by Torben - 2015-10-05, 11:59
RE: J* feature request thread - by badaas - 2015-10-06, 13:05
RE: J* feature request thread - by badaas - 2015-10-23, 03:39
RE: J* feature request thread - by badaas - 2015-10-06, 13:10
RE: J* feature request thread - by Hitcher - 2015-10-06, 18:13
RE: J* feature request thread - by Torben - 2015-10-08, 09:02
RE: J* feature request thread - by Jayz2K - 2015-10-08, 15:25
RE: J* feature request thread - by Torben - 2015-10-12, 08:02
J* feature request thread - by Hitcher - 2015-10-12, 09:26
RE: J* feature request thread - by Torben - 2015-10-12, 19:07
RE: J* feature request thread - by Torben - 2015-10-13, 21:37
RE: J* feature request thread - by Torben - 2015-10-14, 05:42
RE: J* feature request thread - by Torben - 2015-10-14, 06:55
RE: J* feature request thread - by ronie - 2015-10-14, 11:48
RE: J* feature request thread - by Torben - 2015-10-14, 12:29
RE: J* feature request thread - by Jayz2K - 2015-10-17, 11:06
RE: J* feature request thread - by Torben - 2015-10-19, 14:23
RE: J* feature request thread - by Gade - 2015-10-19, 19:54
RE: J* feature request thread - by Hitcher - 2015-10-19, 18:11
RE: J* feature request thread - by Jayz2K - 2015-10-19, 20:12
RE: J* feature request thread - by Torben - 2015-10-20, 09:36
RE: J* feature request thread - by Torben - 2015-10-20, 11:04
RE: J* feature request thread - by Torben - 2015-10-20, 21:11
RE: J* feature request thread - by Mr. V - 2015-10-21, 22:33
RE: J* feature request thread - by Jayz2K - 2015-10-22, 15:04
RE: J* feature request thread - by tomer953 - 2015-10-23, 06:34
RE: J* feature request thread - by Jayz2K - 2015-10-23, 11:18
RE: J* feature request thread - by Jayz2K - 2015-10-23, 12:01
RE: J* feature request thread - by Jayz2K - 2015-10-23, 15:06
RE: J* feature request thread - by Jayz2K - 2015-10-23, 15:17
RE: J* feature request thread - by braz - 2015-10-24, 19:49
RE: J* feature request thread - by Torben - 2015-10-27, 11:25
RE: J* feature request thread - by Torben - 2015-10-27, 13:48
RE: J* feature request thread - by Torben - 2015-10-27, 21:25
RE: J* feature request thread - by badaas - 2015-10-28, 04:08
RE: J* feature request thread - by Torben - 2015-10-28, 09:29
RE: J* feature request thread - by badaas - 2015-10-29, 14:18
RE: J* feature request thread - by badaas - 2015-10-31, 21:48
RE: J* feature request thread - by butchabay - 2015-11-04, 22:54
RE: J* feature request thread - by im85288 - 2015-11-06, 22:43
RE: J* feature request thread - by badaas - 2015-11-11, 02:27
RE: J* feature request thread - by thedeadman - 2015-11-11, 11:47
RE: J* feature request thread - by Martijn - 2015-11-11, 11:50
RE: J* feature request thread - by Torben - 2015-11-11, 22:46
RE: J* feature request thread - by Gade - 2015-11-11, 11:52
RE: J* feature request thread - by Torben - 2015-11-11, 22:49
RE: J* feature request thread - by Martijn - 2015-11-11, 22:50
RE: J* feature request thread - by Torben - 2015-11-11, 23:16
RE: J* feature request thread - by Martijn - 2015-11-11, 23:24
RE: J* feature request thread - by badaas - 2015-11-11, 23:42
RE: J* feature request thread - by Torben - 2015-11-11, 23:48
Logout Mark Read Team Forum Stats Members Help
J* feature request thread1