Skip to content

Commit

Permalink
the style property might already have a style prefix, handle that.
Browse files Browse the repository at this point in the history
  • Loading branch information
peuter committed Mar 6, 2023
1 parent 88c89ea commit 7d8e6fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/class/cv/ui/structure/pure/Web.js
Expand Up @@ -73,6 +73,9 @@ qx.Class.define('cv.ui.structure.pure.Web', {
// overridden
_getInnerDomString() {
let webStyle = this.getStyle();
if (webStyle !== '' && webStyle.startsWith('style="')) {
webStyle = webStyle.substring(7, webStyle.length-1);
}
if (this.getWidth()) {
webStyle += 'width:' + this.getWidth() + ';';
} else {
Expand All @@ -83,7 +86,7 @@ qx.Class.define('cv.ui.structure.pure.Web', {
webStyle += 'height:' + this.getHeight() + ';';
}
if (this.getFrameborder() === false) {
webStyle += 'border: 0px ;';
webStyle += 'border: 0px;';
}
if (this.getBackground()) {
webStyle += 'background-color:' + this.getBackground() + ';';
Expand Down

0 comments on commit 7d8e6fa

Please sign in to comment.