Hi Alexey,

this is the perfect use case for writing your own List Renderer for a Mobile 
List.

Have a look a this StackOverflow question, I already answered:
http://stackoverflow.com/questions/18833656/qooxdoo-mobile-list-view-item-expandable

Don't be scared about writing your own renderer. It is quite easy. 

If you want to override a qooxdoo CSS statement you write "!important" after 
your CSS statement.

http://webdesign.about.com/od/css/f/blcssfaqimportn.htm

This is a quick solution for minor problems.
In your case I would write a renderer.

Greetz Christopher
________________________________________
Von: alexey.petrenko [apetrenko1...@gmail.com]
Gesendet: Freitag, 10. Januar 2014 00:01
An: qooxdoo-devel@lists.sourceforge.net
Betreff: [qooxdoo-devel] List margins, bom vs scss

Huge thanks for answers in my other topics, but today I have  more
questions... )

I have a mobile app with list in the center of the screen.

      this.__list = new qx.ui.mobile.list.List();
      this.getContent().add(this.__list);

This list should have left & right margin.
First thing I tried to do - I created the css class .mylist with margin-left
and margin-rigth set to 0.6rem.
But this caused no effect - as I can see in Chrome 'Inspect element code' -
these properties are overrided by some another css class (.mobile I
suppose).

I tried to solve it with:

      var listContainer = this.__list.getContainerElement();
      qx.bom.element.Style.set(listContainer, 'margin-left', '0.6rem');
      qx.bom.element.Style.set(listContainer, 'margin-right', '0.6rem');

This added left margin but the right edge is still glued to the edge of the
screen!
How do I solve such a simple problem?

Also, generally, what should I do if I want my css class to be "on the top"
of the css chain and override same properties of all other classes?
Maybe this is more css question than qooxdoo, but anyway.



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/List-margins-bom-vs-scss-tp7585158.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to