korebantic
14 Jan 2009, 10:31 AM
I'm in a situation where I have a page that is rendered with extjs, but includes a gxt component. In this scenerio, gxt is overwriting the body classes injected by extjs.
This is a snippet of the body element on a page that uses extjs only:
<body class="ext-gecko ext-gecko3 x-border-layout-ct" id="ext-gen7" style="position: relative;">
This is a snippet of the body element on the same page above, that uses extjs and gxt (where gxt renders a panel to a specified div):
<body class="ext-gecko" id="ext-gen7" style="position: relative;">
You can see that gxt is overwriting the class attribute. Is there an easy way to control this behavior in gxt? This is arguably a bug, because if my gxt code is ony rendering to a div within the body, it's a bit naughty for gxt to be overwriting classes in body. Also, if anything, shouldn't it not be appending the classes versus overwriting?
This is a snippet of the body element on a page that uses extjs only:
<body class="ext-gecko ext-gecko3 x-border-layout-ct" id="ext-gen7" style="position: relative;">
This is a snippet of the body element on the same page above, that uses extjs and gxt (where gxt renders a panel to a specified div):
<body class="ext-gecko" id="ext-gen7" style="position: relative;">
You can see that gxt is overwriting the class attribute. Is there an easy way to control this behavior in gxt? This is arguably a bug, because if my gxt code is ony rendering to a div within the body, it's a bit naughty for gxt to be overwriting classes in body. Also, if anything, shouldn't it not be appending the classes versus overwriting?