taboca / TelaSocial

Social Dashboard Browser Player for Television Panels - Linux based, Gecko-based
www.telasocial.com
10 stars 2 forks source link

Components and Choreographer initial design and polish work #32

Open taboca opened 11 years ago

taboca commented 11 years ago

Based in use case,

We came up with the grid-calendar component with early code[1]. This component attempts to inform its iframe height to the parent, the choreographer, so it causes changes to the above level of choreography, for instance the layout is changed.

[1] https://github.com/taboca/TelaSocial/tree/master/apps/base/grid-calendar

The early prototype worked well as a hack and it involved a works, under the PTI eventos case [2]

[2] https://github.com/taboca/FPTI-tela-eventos

And more precisely [3]

[3] https://github.com/taboca/FPTI-tela-eventos/blob/master/lib/choreographer.js#L17

Which is a location we tested an idea similar to "flex" from XUL. At this stage we simply rearrange each element's height position for the elements market with data-flex. This work is very much specific to the customer's case and some problems are pointed:

So, for example, a inner component should not do things like this:

https://github.com/taboca/TelaSocial/blob/master/apps/base/grid-calendar/app.js#L347