When we try to embed widget on site which contains something like this:
body * {
font-family: "SomeFont" !important;
}
we get incorrect width for qx.ui.basic.Label.
it is caused by following snippet from qooxdoo/framework/source/class/qx/bom/Label.js:
__measureSize : function(element, styles)
{
// sync styles
var keys = this.__styles;
if (!styles) {
styles = {};
}
for (var key in keys) {
element.style[key] = styles[key] || "";
}
// detect size
var size = qx.bom.element.Dimension.getSize(element);
// all modern browser are needing one more pixel for width
size.width++;
return size;
}
when we set style for element in snippet specified above, we don't specify value which is being set as important. So specified properties can be override.
When we try to embed widget on site which contains something like this:
body * { font-family: "SomeFont" !important; } we get incorrect width for qx.ui.basic.Label.
it is caused by following snippet from qooxdoo/framework/source/class/qx/bom/Label.js:
when we set style for element in snippet specified above, we don't specify value which is being set as important. So specified properties can be override.