Hi
After a bit of searching I found that in CCEGLView, calling setDesignResolution would alter the style of
.
Tracing the “issue” i found out that *setupContainer overrides the body style with a padding of 0.
I saw this, as I use a padding-top of 60 so that my main content does not get under my fixed menu bar
Is this “normal”/intended or does this to be modified for other reasons ?
Thanks in advance.
Nicolas
@
*setupContainer:function(){
//…
var body = document.body;
if (body)
body.style.padding = body.style.border = body.style.margin = 0 + “px”;
//…
}@
The padding and other style were setup to make the canvas fit better the screen, but I agree that it shouldn’t overwrite user’s custom configuration. I will make some change to fix that for you.
Thank you for your feedback
oops
looks like it gets the ComputedStyle (which contains the CSS style) but it is read-only.
dunno what is the solution to overwrite the style attributes.
anyway hope it helps.
any idea on how to make that work with styles in CSS ?