dart - Creating a Rikulo custom view and give his children correct position -


why has absolute position? i'm trying make panel title, title behind child nodes of panel, because children in absolute position. how can build custom views if not respect layout? want control in childs place. don't approach clear mind?

here simple code example:

class mypanel extends view {  string title;  mypanel() {  }   @override   element render_() =>   new element.html('<div class="v-shadow"><div class="v-title">$title</div><div class="v-inner" id="$uuid-inner"></div></div>'); } 

this result screenshot, title dashed blue border

http://i.stack.imgur.com/pprrd.png

yes, absolute position designed on purpose. in short, ensures views in rikulo 100% controllable. more philosophy behind it, please refer here , here.

unlike css, position controlled application (in dart) or use of the layout manager, such linear layout , anchor layout. of course, can provide own layout too.

if css layout want, can embed html fragment textview.fromhtml.

notice: html fragment of mypanel shall controlled css, since view (i.e., mypanel in case) absolute positioned. tags generated render_() won't be.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -