11-20-2012 01:18 PM
Consider the following code:
import bb.cascades 1.0
Page {
Container {
Container {
background: Color.Magenta
topMargin: 0.0
topPadding: 0.0
bottomMargin: 0.0
bottomPadding: 0.0
Label {
bottomMargin: 0.0
bottomPadding: 0.0
topMargin: 0.0
topPadding: 0.0
text: "Row number 1"
}
}
Container {
background: Color.Cyan
topMargin: 0.0
topPadding: 0.0
bottomMargin: 0.0
bottomPadding: 0.0
Label {
topMargin: 0.0
topPadding: 0.0
bottomMargin: 0.0
bottomPadding: 0.0
text: "Row number 2"
}
}
}What I get (in the simulator) is empty space inside each container (see photo below):

It appears padding on left/right sides is set to 0.0 (without even specifying it in QML) but top and bottom of each container or label has extra padding... How to get rid of it so that there is no space between the two lines?
11-20-2012 10:49 PM
Anyone? This thing is driving me craaaaaazy....
11-21-2012 12:11 AM
11-21-2012 10:48 AM
Thanks but I searched Bug Tracker for it and cannot find an entry which describes similar situation. How do you know it is a bug?
02-01-2013 10:12 AM
The documentation says, that there is allways a margin of 10 pixels per side.
i hope, they will remove that...
02-01-2013 01:19 PM
You can set the padding to a negative value to eat away at some of this white space.
Obviously this opens up the possiblity of things going wrong, but if your are careful it can work...
02-01-2013 02:22 PM
02-06-2013 09:13 AM
As work arround i used an AbsoluteLayout and incremented the heigth by the buttons size. that also solved other problems, i had...