473,715 Members | 5,414 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE6, xhtml, scrollbars and you

Okay, you are all so smart in here. Answer me this:

IE6 in standards mode doesn't seem to hide scrollbars on the body element
(overflow:hide) Ain't this a quandary. I have it in my head that I need to
specify html instead. The scrollbars do hide on Gecko browsers though, so
there is definitely a disagreement among browser developers on how to
implement scrollbars (as a side note, Gecko browsers with their notoriously
bug-ridden resize code seem to always screw up when asked to stretch and
scroll divs, even when the page is reloaded on every resize!)

My first thought is to modify the CGI that generates the style sheet as I
already have code that deprecates the document type when hidden scroll bars
are required on IE6 (but not IE5.) This is based on the simple empirical
evidence that the scroll bars are still there on IE6 in standards mode, so
the optimal document type (XHTML strict) cannot be used. So I could just
change this to output an html style (rather than a body style) for IE6 and
lose the deprecation (it wouldn't be needed at this point.)

So the question is this. Given that CGI-based processing of browser
versions for these kinds of tweaks is taboo, what would you check on the
client side before dynamically generating the style for the body and/or html
element? It doesn't seem like you could just send both as this would surely
break some older browsers (I know you can do tricks with comments and such,
but that only works for NS4 and maybe IE3 AFAIK.)

documentElement is the only thing I can think of that indicates standards
mode and NS6/Mozilla support this AFAIK.

IE Conditional comments perhaps? I would hate to hard-code a test for a
browser version number into the actual document (for obvious reasons), but I
guess it is an alternative if the browser version is exposed to these
things.

I don't see any other way to deal with a situation like this than with
server-side code that looks at the browser's version number and makes the
necessary adjustment. And there are lots of little differences like this
that just don't seem to have viable client-only solutions. There's DirectX
stuff (probably is an object detect for that) and funky colored scrollbars
(hey people ask for them) and document margins (Opera did them slightly
differently than the rest as I recall) and now this scrollbar thing.

Oh well. If there is a definitive client-only answer to all of this then I
would love to hear it! Otherwise, any thoughts on the #$@% scrollbars is
appreciated.

All the best,
Michael Jibbering
Jul 20 '05 #1
24 4722
On Thu, 04 Sep 2003 00:08:08 GMT, "Nobody" <no**@nope.ne t> wrote:
This is based on the simple empirical
evidence that the scroll bars are still there on IE6 in standards mode, so
the optimal document type (XHTML strict) cannot be used.
Internet explorer does not claim to support XHTML, so since you cannot
send XHTML with the correct mime-type, you're relying on Appendix C
fixup of XHTML 1.0, and I certainly can't see how that is in any way
"optimal". This is probably the first place to look.
Oh well. If there is a definitive client-only answer to all of this then I
would love to hear it! Otherwise, any thoughts on the #$@% scrollbars is
appreciated.


I can't see the javascript question, the correct place would be a
stylesheets group, the solution certainly doesn't rely in javascript.

Jim.
--
comp.lang.javas cript FAQ - http://jibbering.com/faq/

Jul 20 '05 #2

"Jim Ley" <ji*@jibbering. com> wrote in message
news:3f******** *******@news.ci s.dfn.de...
| On Thu, 04 Sep 2003 00:08:08 GMT, "Nobody" <no**@nope.ne t> wrote:
|
| > This is based on the simple empirical
| >evidence that the scroll bars are still there on IE6 in standards mode,
so
| >the optimal document type (XHTML strict) cannot be used.
|
| Internet explorer does not claim to support XHTML, so since you cannot

Hmmm. It does switch to "standards mode" when confronted with the XHTML
document type and it does comply with it as far as I can tell. It most
assuredly does things differently in this mode.

| send XHTML with the correct mime-type, you're relying on Appendix C
| fixup of XHTML 1.0, and I certainly can't see how that is in any way
| "optimal". This is probably the first place to look.

XHTML is optimal in numerous ways, not the least of which is that it is far
more compact than the equivalent HTML 4.01. Plus I want to send the best
document that the browser can handle.

The only thing that IE6 did not handle right with XHTML was the stupid
scrollbars. Unthinkable but true.

|
| >Oh well. If there is a definitive client-only answer to all of this then
I
| >would love to hear it! Otherwise, any thoughts on the #$@% scrollbars is
| >appreciated.
|
| I can't see the javascript question, the correct place would be a
| stylesheets group, the solution certainly doesn't rely in javascript.

Sure it does. An object detection solution is what I'm after (if one
exists.) As I stated, I don't believe that CSS can handle this quandary
alone. Perhaps I am wrong.

|
| Jim.
| --
| comp.lang.javas cript FAQ - http://jibbering.com/faq/
|
Jul 20 '05 #3
"Nobody" <no**@nope.ne t> writes:
Okay, you are all so smart in here. Answer me this:

IE6 in standards mode doesn't seem to hide scrollbars on the body element
(overflow:hide)
I assume you mean "overflow:hidde n".
(<URL:http://www.w3.org/TR/CSS2/visufx.html#ove rflow>)

There is no overflow on the body element by default, as it hasn't got
a fixed height. The overflow you might want is on the html element:
html {overflow:hidde n;}
Remember that in standards mode, the root of the document tree is
document.docume ntElement (corresponds to the html tag), not
document.body.
Ain't this a quandary. I have it in my head that I need to
specify html instead. The scrollbars do hide on Gecko browsers though, so
there is definitely a disagreement among browser developers on how to
implement scrollbars
There is no standards governing the browser interface, only the rendering
of the page. There is no rule that requires the scrollbars on the viewport
to correspond to any overflow property. So yes, there is disagreement.
This is based on the simple empirical evidence that the scroll bars
are still there on IE6 in standards mode,
It is the standards mode that trips you up, because it doesn't work
as quirks mode.
so the optimal document
type (XHTML strict) cannot be used. So I could just change this to
output an html style (rather than a body style) for IE6 and lose the
deprecation (it wouldn't be needed at this point.)
You should not make new pages to quirks mode. It is there for backwards
compatability with badly written pages aimed at pre-standard browsers.
Not a group you will want your page to be associated with.
So the question is this. Given that CGI-based processing of browser
versions for these kinds of tweaks is taboo, what would you check on the
client side before dynamically generating the style for the body and/or html
element?
What do you want to detect?

In IE, Mozilla and Opera 7, you can check for standards mode with the
document.compat Mode string. It either responds "CSS1Compat " for
standards mode, or "BackCompat " in IE and Mozilla and "QuirksMode " in
Opera 7. (Mozilla also has an "almost standards mode", but I don't
know how it is reflected in the compatMode string).
documentElement is the only thing I can think of that indicates standards
mode and NS6/Mozilla support this AFAIK.
See above, but yes, documentElement is also a good signal, and Opera
supports it too.

I typically have a statement like:
var root = document.docume ntElement || document.body;
for scripts that are standards/quirks mode agnostic.
(Yey, on topic!)
IE Conditional comments perhaps? I would hate to hard-code a test for a
browser version number into the actual document (for obvious reasons), but I
guess it is an alternative if the browser version is exposed to these
things.
<!--[if IE 6]> ... <![end if]-->

<URL:http://msdn.microsoft. com/workshop/author/dhtml/overview/ccomment_ovw.as p>

I don't see any other way to deal with a situation like this than with
server-side code that looks at the browser's version number and makes the
necessary adjustment. And there are lots of little differences like this
that just don't seem to have viable client-only solutions.
Anything you can detect on the server, you can do better on the client.
With document.write, you can emit code on the client just as your
serverside echo/Response.Write. The only difference is that the server
doesn't rely on Javascript being enabled on the client.
There's DirectX stuff (probably is an object detect for that)
IE specific, so don't bother making the pages containing it generic.
and funky colored scrollbars (hey people ask for them)
And boy, do they get them!
Actually, Opera can support colored scrollbars too.
and document margins (Opera did them slightly differently than the
rest as I recall)
Opera followed the CSS recommendation' s appendix A and gave body
an 8px padding, not a margin like IE. Mozilla followed IE for no
apparent reason.
and now this scrollbar thing.
That is just the difference between standards and quirks mode.
Oh well. If there is a definitive client-only answer to all of this then I
would love to hear it! Otherwise, any thoughts on the #$@% scrollbars is
appreciated.


It's pure CSS, no Javscript needed.
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #4

"Lasse Reichstein Nielsen" <lr*@hotpop.com > wrote in message
news:ek******** **@hotpop.com.. .
| "Nobody" <no**@nope.ne t> writes:
|
| > Okay, you are all so smart in here. Answer me this:
| >
| > IE6 in standards mode doesn't seem to hide scrollbars on the body
element
| > (overflow:hide)
|
| I assume you mean "overflow:hidde n".
| (<URL:http://www.w3.org/TR/CSS2/visufx.html#ove rflow>)

Type-o. Long day.

|
| There is no overflow on the body element by default, as it hasn't got
| a fixed height. The overflow you might want is on the html element:
| html {overflow:hidde n;}

Yeah, I figured that.

| Remember that in standards mode, the root of the document tree is
| document.docume ntElement (corresponds to the html tag), not
| document.body.

Right. That makes sense.

|
| > Ain't this a quandary. I have it in my head that I need to
| > specify html instead. The scrollbars do hide on Gecko browsers though,
so
| > there is definitely a disagreement among browser developers on how to
| > implement scrollbars
|
| There is no standards governing the browser interface, only the rendering
| of the page. There is no rule that requires the scrollbars on the viewport
| to correspond to any overflow property. So yes, there is disagreement.
|
| > This is based on the simple empirical evidence that the scroll bars
| > are still there on IE6 in standards mode,
|
| It is the standards mode that trips you up, because it doesn't work
| as quirks mode.

Er. It DOES work in quirks mode. Standards mode indeed causes a problem
with my current coding. Is that what you meant?

|
| > so the optimal document
| > type (XHTML strict) cannot be used. So I could just change this to
| > output an html style (rather than a body style) for IE6 and lose the
| > deprecation (it wouldn't be needed at this point.)
|
| You should not make new pages to quirks mode. It is there for backwards
| compatability with badly written pages aimed at pre-standard browsers.
| Not a group you will want your page to be associated with.

No doubt about it. I spent a lot of time to re-tool my engine for XHTML and
everything was great in IE until I upgraded to IE6 and noticed this problem!

|
| > So the question is this. Given that CGI-based processing of browser
| > versions for these kinds of tweaks is taboo, what would you check on the
| > client side before dynamically generating the style for the body and/or
html
| > element?
|
| What do you want to detect?
|
| In IE, Mozilla and Opera 7, you can check for standards mode with the
| document.compat Mode string. It either responds "CSS1Compat " for
| standards mode, or "BackCompat " in IE and Mozilla and "QuirksMode " in
| Opera 7. (Mozilla also has an "almost standards mode", but I don't
| know how it is reflected in the compatMode string).

Cool! That is what I was looking for. I might not need it for the
scrollbar problem at this point, but that could be useful for other things.

|
| > documentElement is the only thing I can think of that indicates
standards
| > mode and NS6/Mozilla support this AFAIK.
|
| See above, but yes, documentElement is also a good signal, and Opera
| supports it too.

Right.

|
| I typically have a statement like:
| var root = document.docume ntElement || document.body;

That makes sense. I think I have a similar tidbit buried deep in my code
somewhere.

| for scripts that are standards/quirks mode agnostic.
| (Yey, on topic!)
|
| > IE Conditional comments perhaps? I would hate to hard-code a test for a
| > browser version number into the actual document (for obvious reasons),
but I
| > guess it is an alternative if the browser version is exposed to these
| > things.
|
| <!--[if IE 6]> ... <![end if]-->
|
|
<URL:http://msdn.microsoft.com/workshop/a...ccomment_ovw.a
sp>

Okay. I thought as much. Thanks for the confirmation. I don't need it for
the scrollbar problem anymore, but thanks anyway.

|
|
| > I don't see any other way to deal with a situation like this than with
| > server-side code that looks at the browser's version number and makes
the
| > necessary adjustment. And there are lots of little differences like
this
| > that just don't seem to have viable client-only solutions.
|
| Anything you can detect on the server, you can do better on the client.
| With document.write, you can emit code on the client just as your

But my database of client capabilities is on the server. That is why I
generate my CSS files with CGI. Not needed in this example, but there are
some things that are not detectable (a silly example would be colored scroll
bars.)
| serverside echo/Response.Write. The only difference is that the server
| doesn't rely on Javascript being enabled on the client.
|
| > There's DirectX stuff (probably is an object detect for that)
|
| IE specific, so don't bother making the pages containing it generic.

What does that mean? I output a DX-specific style or a background-image
accordingly to create gradient effects. I do this on the server as it
checks the database to see which version of IE started support for this
feature. The end result is a page that is portable and generic. The style
sheet dynamically generates each time the page is loaded, so it all works
out well. What's the problem?

|
| > and funky colored scrollbars (hey people ask for them)
|
| And boy, do they get them!
| Actually, Opera can support colored scrollbars too.

Happy happy joy joy!

Must update database. Opera as of...? One of the cool things is that once
these things are supported they generally stick around for the life of the
browser.

|
| > and document margins (Opera did them slightly differently than the
| > rest as I recall)
|
| Opera followed the CSS recommendation' s appendix A and gave body
| an 8px padding, not a margin like IE. Mozilla followed IE for no
| apparent reason.

And pissed me off for a few hours one night like you wouldn't believe.
Interestingly enough, it appears that they were right. I don't think that
tidbit would have helped me at the time.

|
| > and now this scrollbar thing.
|
| That is just the difference between standards and quirks mode.
|
| > Oh well. If there is a definitive client-only answer to all of this
then I
| > would love to hear it! Otherwise, any thoughts on the #$@% scrollbars
is
| > appreciated.
|
| It's pure CSS, no Javscript needed.

Yeah as long as I can send both (body and html) without breaking any
browsers. I think I may have my CSS process send one or the other depending
on the document type.

| /L
| --
| Lasse Reichstein Nielsen - lr*@hotpop.com
| Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
| 'Faith without judgement merely degrades the spirit divine.'

Thanks a lot. I knew somebody else had to have seen (and dealt with) some
of these same oddities. It's a small world after all.

Jul 20 '05 #5
DU
Lasse Reichstein Nielsen wrote:
"Nobody" <no**@nope.ne t> writes:

Okay, you are all so smart in here. Answer me this:

IE6 in standards mode doesn't seem to hide scrollbars on the body element
(overflow:hid e)

I assume you mean "overflow:hidde n".
(<URL:http://www.w3.org/TR/CSS2/visufx.html#ove rflow>)


God would have known that it was hidden, not hide. :)
There is no overflow on the body element by default, as it hasn't got
a fixed height.
Since I'm not God ;p I'll risk that the browser default css overflow
declaration on the body element in all browsers is visible.
The overflow you might want is on the html element: html {overflow:hidde n;}
This is debattable. MSIE 6 for windows has the browser default
overflow:scroll for the root element. So, you would need to use
overflow:visibl e or overflow:auto instead.
Remember that in standards mode, the root of the document tree is
document.docume ntElement (corresponds to the html tag), not
document.body.

Ain't this a quandary. I have it in my head that I need to
specify html instead. The scrollbars do hide on Gecko browsers though, so
there is definitely a disagreement among browser developers on how to
implement scrollbars

There is no standards governing the browser interface, only the rendering
of the page. There is no rule that requires the scrollbars on the viewport
to correspond to any overflow property.


Yes and no. It would be quite suicidal not to implement scrolling of
some sort in case of overflow.

"When the viewport is smaller than the document's initial containing
block, the user agent should offer a scrolling mechanism."
http://www.w3.org/TR/CSS2/visuren.html#q2
http://www.w3.org/TR/CSS21/visuren.html#q2
So yes, there is disagreement.
This is based on the simple empirical evidence that the scroll bars
are still there on IE6 in standards mode,

It is the standards mode that trips you up, because it doesn't work
as quirks mode.

so the optimal document
type (XHTML strict) cannot be used. So I could just change this to
output an html style (rather than a body style) for IE6 and lose the
deprecation (it wouldn't be needed at this point.)

You should not make new pages to quirks mode. It is there for backwards
compatability with badly written pages aimed at pre-standard browsers.
Not a group you will want your page to be associated with.


I think he has a point. The problem is that if there is no content
overflow, in standard compliant rendering mode, a vertical scrollbar
will appear... for no reason.

Important and unknown default browser values:
http://www10.brinkster.com/doctorunc...ultValues.html
So the question is this. Given that CGI-based processing of browser
versions for these kinds of tweaks is taboo, what would you check on the
client side before dynamically generating the style for the body and/or html
element?

What do you want to detect?

In IE, Mozilla and Opera 7, you can check for standards mode with the
document.compat Mode string. It either responds "CSS1Compat " for
standards mode, or "BackCompat " in IE and Mozilla and "QuirksMode " in
Opera 7. (Mozilla also has an "almost standards mode", but I don't
know how it is reflected in the compatMode string).

documentEleme nt is the only thing I can think of that indicates standards
mode and NS6/Mozilla support this AFAIK.

See above, but yes, documentElement is also a good signal, and Opera
supports it too.

I typically have a statement like:
var root = document.docume ntElement || document.body;
for scripts that are standards/quirks mode agnostic.
(Yey, on topic!)

IE Conditional comments perhaps? I would hate to hard-code a test for a
browser version number into the actual document (for obvious reasons), but I
guess it is an alternative if the browser version is exposed to these
things.

<!--[if IE 6]> ... <![end if]-->

<URL:http://msdn.microsoft. com/workshop/author/dhtml/overview/ccomment_ovw.as p>

I don't see any other way to deal with a situation like this than with
server-side code that looks at the browser's version number and makes the
necessary adjustment. And there are lots of little differences like this
that just don't seem to have viable client-only solutions.

Anything you can detect on the server, you can do better on the client.
With document.write, you can emit code on the client just as your
serverside echo/Response.Write. The only difference is that the server
doesn't rely on Javascript being enabled on the client.

There's DirectX stuff (probably is an object detect for that)

IE specific, so don't bother making the pages containing it generic.

and funky colored scrollbars (hey people ask for them)

And boy, do they get them!
Actually, Opera can support colored scrollbars too.

and document margins (Opera did them slightly differently than the
rest as I recall)

Opera followed the CSS recommendation' s appendix A and gave body
an 8px padding, not a margin like IE.

Yep. That is even documented also.
Mozilla followed IE for no apparent reason.

MSIE margins on the body element is {margin:15px 10px;} while Mozilla's
is {margin:8px;}. God would have known that :)
and now this scrollbar thing.

That is just the difference between standards and quirks mode.


God only has to set the following declaration

html {overflow:auto; }

and then a miracle will happen with the scrollbar. Jesus, I wish God
could take care of a few thousands bugs in MSIE 6 and make the release
date of MSIE 7 for next week. That would be fine :)

DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunc...e7Section.html

Jul 20 '05 #6
DU <dr*******@hotR EMOVEmail.com> writes:
There is no overflow on the body element by default, as it hasn't got
a fixed height.
Since I'm not God ;p I'll risk that the browser default css overflow
declaration on the body element in all browsers is visible.
Yes, but the point is that the default height is "auto", so you won't get
any overflow.
This is debattable. MSIE 6 for windows has the browser default
overflow:scroll for the root element. So, you would need to use
overflow:visibl e or overflow:auto instead.
"overflow:hidde n" will also work. No scrollbar. Bad choice, but seemed
to be what the original poster wanted.
of the page. There is no rule that requires the scrollbars on the viewport
to correspond to any overflow property. Yes and no. It would be quite suicidal not to implement scrolling of
some sort in case of overflow.
Absolutely. An in some browsers, there is no document model node
corresponding to the viewport, and you can't use a CSS overflow
declaration to change the default browser scrollbars.
"When the viewport is smaller than the document's initial containing
block, the user agent should offer a scrolling mechanism."

http://www.w3.org/TR/CSS2/visuren.html#q2
http://www.w3.org/TR/CSS21/visuren.html#q2
Yes. Strictly speaking, that doesn't leave room for turning that
scrollbar off.
compatability with badly written pages aimed at pre-standard browsers.
Not a group you will want your page to be associated with.

I think he has a point. The problem is that if there is no content
overflow, in standard compliant rendering mode, a vertical scrollbar
will appear... for no reason.
So will it in quirks mode. That is an IE interface decission.

You can turn it off, but you just have to do it slightly differently
between standardsand quirks mode. In quirks mode, it is the overflow
property of the body that controls it. In standards mode, it is the
overflow property of the html element (documentElemen t) that controls
the scrollbar.
Important and unknown default browser values:
http://www10.brinkster.com/doctorunc...ultValues.html


Cute :) I see Opera 7.2 still needs to fix their getComputedStyl e for
lengths that are "auto".

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #7
"Nobody" <no**@nope.ne t> writes:

Er. It DOES work in quirks mode. Standards mode indeed causes a problem
with my current coding. Is that what you meant?
Exactly :)
What does that mean? I output a DX-specific style or a background-image
accordingly to create gradient effects.
Ah. I was thinking of embedded ActiveX controls that were an important
part of the page. Pure decoration should be safe.
Must update database. Opera as of...?


Mhh, not sure which version of Opera 7. Probably there since the first
official release. The trick is that it is not enabled by default, and
I don't think there is a way to check for it.

Still, the CSS for colored scrollbars won't break anything. So you can
just send it and hope it is enabled.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #8
On Thu, 04 Sep 2003 00:38:24 GMT, "Nobody" <no**@nope.ne t> wrote:
| Internet explorer does not claim to support XHTML, so since you cannot

Hmmm. It does switch to "standards mode" when confronted with the XHTML
document type and it does comply with it as far as I can tell.
Certainly, but it's just treating XHTML as html, but then that's all
you're telling it to do, since you're deliberately sending it with the
wrong mime-type.
XHTML is optimal in numerous ways, not the least of which is that it is far
more compact than the equivalent HTML 4.01.
Utter, utter garbage, HTML 4.01 will almost always be able to me
smaller, the smallest HTML 4.01 doc is tiny compared to XHTML.
compactness certainly isn't an argument.
Plus I want to send the best document that the browser
can handle.
Appendix C XHTML 1.0 is certainly not that!
| I can't see the javascript question, the correct place would be a
| stylesheets group, the solution certainly doesn't rely in javascript.

Sure it does. An object detection solution is what I'm after (if one
exists.)


Javascript does not solve this problem since you cannot know what
browser is executing the javascript, you cannot rely on javascript
executing, and there are better solutions in the stylesheet group.
There's no direct correlation between the problem you have and a
javascript object, so any javascript technique you use even if willing
to accept it will only work when js is enabled will be fragile as it
will be based on knowledge of what objects the browser has as a
co-incidence to the bug, and even if we deal with all existing
browsers, new browsers will almost certainly break it.

ask in a stylesheets group.

Jim.
--
comp.lang.javas cript FAQ - http://jibbering.com/faq/

Jul 20 '05 #9
On Thu, 04 Sep 2003 09:31:06 GMT, ji*@jibbering.c om (Jim Ley) wrote:
On Thu, 04 Sep 2003 00:38:24 GMT, "Nobody" <no**@nope.ne t> wrote:
XHTML is optimal in numerous ways, not the least of which is that it is far
more compact than the equivalent HTML 4.01.


Utter, utter garbage, HTML 4.01 will almost always be able to me
smaller, the smallest HTML 4.01 doc is tiny compared to XHTML.
compactness certainly isn't an argument.

For once, I disagree with that Jim. XHTML _can_ be a lot smaller.
Doesn't, of course, mean that all page designs in XHTML _will_ be
smaller, but they probably all _could_ be if properly designed.
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2442
by: Konrad Koller | last post by:
For a card playing game I constructed a layout of 49 playing cards (size of each: x=71, y=96) which are arranged in a 7X7 matrix side by side. Accordingly the pysical size of the Canvas is x=71*7, y=96*7: in the main program: canvas=QCanvas(497,672) class Board(QCanvasView): def __init__(self,canvas,parent): QCanvasView.__init__(self,canvas,parent)
6
11488
by: adrien | last post by:
Hi, (also posted in netscape.public.mozilla.browser) i use netscape 7 and want to hide the scrollbars of the window when something happens. I tried this: window.scrollbars.visible=false window.scrollbars.visibility="no" .... nothing works Is it also possible only to hide the vertical scrollbar instead of both?
5
4357
by: Dennis M. Marks | last post by:
My script opens a window that is supposed to be resizable and scrollable. I am on a Mac. With IE 5.1.7 it works fine. With Netscape 6 there is no scroll bar. I am able to resize it smaller than the page but scrollbars still do not appear. What am I doing wrong. Is this just a bug in the Mac version of Netscape. Please let me know if the popup window is scrollable on your platform and do you see a problem with my code. The page is...
14
2292
by: Jorg Matter | last post by:
Hello I should like to define the colors of the scrollbars for divs with overflows set to auto. I have a design with black background and white text. Now the scrollbars do not look very nice and I should like to have them some sort of dark grey or so. Where and how do I define these colors? Jörg
1
3744
by: Andi Plotsky | last post by:
I have a subform where I dynamically change the SourceObject dependent upon the User's response to questions on the Main form. My problem is that the scrollbars do not show up on either the Main Form or the Subforms (except for on the opening form, but it doesn't scroll past the top viewable items). If I look at any of the forms separately, the scrollbars do show up and function just fine. The longest subform is 15", and so I have set...
1
3673
by: Fabrício de Novaes Kucinskis | last post by:
Hi all, I have to problems concerning datagrids, tabcontrols and scrollbars: 1) I created a form with a TabControl. This TabControl has two TabPages: the first with a datagrid to browse database records and the second with some controls (TextBoxes, OptionButtons...) to edit these records. When the second tab is shown and I use the DataGrid's SetDataBind method, the grid scrollbars are disabled.
5
1244
by: Mark | last post by:
I am struggling with a CSS2 layout problem, I am using Visual Web Developer 2005 Express. My website needs to be constrained within the visible viewport. This means that scrollable content will be contained within a scrollable DIV - the problem I have is in giving this DIV a certain height and width of it's containing DIV. For instance... <body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
17
2090
by: Dino M. Buljubasic | last post by:
I have a treeview and a checked list view controls one beside another. I want to make them work so that when I scroll down or up one of them the other does the same. Any help will be appreciated -- Dino Buljubasic Software Developer http://rivusglobal.com
2
2402
by: needin4mation | last post by:
Does anyone know what would cause a popup with scrollbars=1 to suddenly lose its scrollbars? I have a popup from window.open (....scrollbars=1..) and it used to be a normal window that would have it scrollbars. Now, at least on some machines, not all, the scrollbars are nor present. The user has to click on the screen and drag the mouse to move the webpage down. Any ideas? Thank you for any help.
0
8823
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8718
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9198
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9104
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9047
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7973
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6646
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4477
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4738
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.